home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 002 / wpshell.arc / SHELL.DOC
Unknown  |  1986-06-09  |  23.1 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert WANG Integrated Word Processor (document/wangIWP) ext Unsupported
1% dexvert Dynamic Publisher Document (document/dynamicPublisherDocument) ext Unsupported
1% dexvert Excellence! Document (document/excellenceDocument) ext Unsupported
1% dexvert Norton Textra Writer (document/textraWriter) ext Unsupported
1% dexvert IBM DisplayWrite Document (document/ibmDisplayWriteDocument) ext Unsupported
1% dexvert Open Access Document (document/openAccessDocument) ext Unsupported
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| cf 02 cf c6 00 06 c6 c9 | 84 21 08 42 10 84 21 08 |........|.!.B..!.|
|00000010| 42 10 84 21 08 42 10 84 | 21 08 42 10 00 08 42 10 |B..!.B..|!.B...B.|
|00000020| 84 21 08 42 10 84 21 08 | 42 10 84 21 08 42 10 84 |.!.B..!.|B..!.B..|
|00000030| c9 86 cb 0a 01 fa 05 cb | c0 0a 4a 06 2d c0 c3 00 |........|..J.-...|
|00000040| 19 0e c3 9d 53 48 45 4c | 4c 20 50 52 4f 47 52 41 |....SHEL|L PROGRA|
|00000050| 4d 20 49 4e 54 45 52 46 | 41 43 45 9c 83 0a 0a cb |M INTERF|ACE.....|
|00000060| fa 05 f6 08 cb c0 06 2d | 0a 4a c0 c3 00 2a 1f c3 |.......-|.J...*..|
|00000070| 57 6f 72 64 50 65 72 66 | 65 63 74 20 43 6f 72 70 |WordPerf|ect Corp|
|00000080| 6f 72 61 74 69 6f 6e 83 | 0a cb f6 08 f4 01 cb c0 |oration.|........|
|00000090| 0a 4a 0c 59 c0 0a 0a c3 | 00 32 2d c3 56 65 72 73 |.J.Y....|.2-.Vers|
|000000a0| 69 6f 6e 20 31 2e 30 83 | 0a c3 00 32 2b c3 46 65 |ion 1.0.|...2+.Fe|
|000000b0| 62 72 75 61 72 79 2c 20 | 31 39 38 36 83 0a dc 0e |bruary, |1986....|
|000000c0| 00 00 00 00 00 02 dc 0c | 0a cb f4 01 f8 08 cb c0 |........|........|
|000000d0| 0c 59 08 46 c0 53 48 45 | 4c 4c 20 50 52 4f 47 52 |.Y.F.SHE|LL PROGR|
|000000e0| 41 4d 20 49 4e 54 45 52 | 46 41 43 45 20 a9 a9 20 |AM INTER|FACE .. |
|000000f0| 54 45 43 48 4e 49 43 41 | 4c 20 53 50 45 43 49 46 |TECHNICA|L SPECIF|
|00000100| 49 43 41 54 49 4f 4e 0a | c0 08 46 0c 59 c0 cb f8 |ICATION.|..F.Y...|
|00000110| 08 f4 01 cb 0a 54 68 69 | 73 20 73 70 65 63 69 66 |.....Thi|s specif|
|00000120| 69 63 61 74 69 6f 6e 20 | 63 6f 6e 74 61 69 6e 73 |ication |contains|
|00000130| 20 74 68 65 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e | the inf|ormation|
|00000140| 20 6e 65 63 65 73 73 61 | 72 79 20 74 6f 20 77 72 | necessa|ry to wr|
|00000150| 69 74 65 20 70 72 6f 67 | 72 61 6d 73 20 74 68 61 |ite prog|rams tha|
|00000160| 74 0d 69 6e 74 65 72 61 | 63 74 20 77 69 74 68 20 |t.intera|ct with |
|00000170| 57 6f 72 64 50 65 72 66 | 65 63 74 27 73 20 53 68 |WordPerf|ect's Sh|
|00000180| 65 6c 6c 20 70 72 6f 67 | 72 61 6d 20 6d 61 6e 61 |ell prog|ram mana|
|00000190| 67 65 72 2e 20 20 54 68 | 65 20 66 6f 6c 6c 6f 77 |ger. Th|e follow|
|000001a0| 69 6e 67 20 73 75 6d 6d | 61 72 79 20 6c 69 73 74 |ing summ|ary list|
|000001b0| 73 0d 74 68 65 20 69 6e | 66 6f 72 6d 61 74 69 6f |s.the in|formatio|
|000001c0| 6e 20 63 6f 6e 74 61 69 | 6e 65 64 20 69 6e 20 65 |n contai|ned in e|
|000001d0| 61 63 68 20 63 68 61 70 | 74 65 72 20 6f 66 20 74 |ach chap|ter of t|
|000001e0| 68 69 73 20 64 6f 63 75 | 6d 65 6e 74 2e 0a 0a 0a |his docu|ment....|
|000001f0| cb f4 01 f8 08 cb c0 0c | 59 08 46 c0 43 68 61 70 |........|Y.F.Chap|
|00000200| 74 65 72 20 31 20 a9 a9 | 20 49 6e 74 72 6f 64 75 |ter 1 ..| Introdu|
|00000210| 63 74 69 6f 6e 20 74 6f | 20 74 68 65 20 53 68 65 |ction to| the She|
|00000220| 6c 6c 0a c0 08 46 0c 59 | c0 cb f8 08 f4 01 cb 0a |ll...F.Y|........|
|00000230| 54 68 69 73 20 63 68 61 | 70 74 65 72 20 69 6e 74 |This cha|pter int|
|00000240| 72 6f 64 75 63 65 73 20 | 74 68 65 20 53 68 65 6c |roduces |the Shel|
|00000250| 6c 20 70 72 6f 67 72 61 | 6d 20 6d 61 6e 61 67 65 |l progra|m manage|
|00000260| 72 20 69 6e 20 67 65 6e | 65 72 61 6c 2c 20 69 74 |r in gen|eral, it|
|00000270| 27 73 20 63 61 70 61 62 | 69 6c 69 74 69 65 73 2c |'s capab|ilities,|
|00000280| 0d 61 6e 64 20 74 68 65 | 20 62 65 6e 65 66 69 74 |.and the| benefit|
|00000290| 73 20 74 6f 20 62 65 20 | 67 61 69 6e 65 64 20 62 |s to be |gained b|
|000002a0| 79 20 77 72 69 74 69 6e | 67 20 70 72 6f 67 72 61 |y writin|g progra|
|000002b0| 6d 73 20 74 68 61 74 20 | 69 6e 74 65 72 61 63 74 |ms that |interact|
|000002c0| 20 64 69 72 65 63 74 6c | 79 20 77 69 74 68 20 74 | directl|y with t|
|000002d0| 68 65 0d 53 68 65 6c 6c | 2e 0a 0a cb f4 01 f8 08 |he.Shell|........|
|000002e0| cb c0 0c 59 08 46 c0 43 | 68 61 70 74 65 72 20 32 |...Y.F.C|hapter 2|
|000002f0| 20 a9 a9 20 57 72 69 74 | 69 6e 67 20 70 72 6f 67 | .. Writ|ing prog|
|00000300| 72 61 6d 73 20 74 68 61 | 74 20 69 6e 74 65 72 61 |rams tha|t intera|
|00000310| 63 74 20 77 69 74 68 20 | 74 68 65 20 53 68 65 6c |ct with |the Shel|
|00000320| 6c 0a c0 08 46 0c 59 c0 | cb f8 08 f4 01 cb 0a 54 |l...F.Y.|.......T|
|00000330| 68 69 73 20 63 68 61 70 | 74 65 72 20 67 69 76 65 |his chap|ter give|
|00000340| 73 20 73 6f 6d 65 20 62 | 61 73 69 63 20 67 75 69 |s some b|asic gui|
|00000350| 64 65 6c 69 6e 65 73 20 | 66 6f 72 20 77 72 69 74 |delines |for writ|
|00000360| 69 6e 67 20 70 72 6f 67 | 72 61 6d 73 20 74 68 61 |ing prog|rams tha|
|00000370| 74 20 69 6e 74 65 72 61 | 63 74 20 77 69 74 68 0d |t intera|ct with.|
|00000380| 74 68 65 20 53 68 65 6c | 6c 2e 20 20 49 74 20 63 |the Shel|l. It c|
|00000390| 6f 6e 74 61 69 6e 73 20 | 74 68 65 20 67 65 6e 65 |ontains |the gene|
|000003a0| 72 61 6c 20 73 74 65 70 | 73 20 6e 65 63 65 73 73 |ral step|s necess|
|000003b0| 61 72 79 20 66 6f 72 20 | 61 20 70 72 6f 67 72 61 |ary for |a progra|
|000003c0| 6d 20 74 6f 20 69 6e 74 | 65 72 66 61 63 65 20 74 |m to int|erface t|
|000003d0| 6f 0d 74 68 65 20 53 68 | 65 6c 6c 2e 0a 0a cb f4 |o.the Sh|ell.....|
|000003e0| 01 f8 08 cb c0 0c 59 08 | 46 c0 43 68 61 70 74 65 |......Y.|F.Chapte|
|000003f0| 72 20 33 20 a9 a9 20 54 | 65 73 74 69 6e 67 20 66 |r 3 .. T|esting f|
|00000400| 6f 72 20 74 68 65 20 70 | 72 65 73 65 6e 63 65 20 |or the p|resence |
|00000410| 6f 66 20 74 68 65 20 53 | 68 65 6c 6c 0a c0 08 46 |of the S|hell...F|
|00000420| 0c 59 c0 cb f8 08 f4 01 | cb 0a 54 68 69 73 20 63 |.Y......|..This c|
|00000430| 68 61 70 74 65 72 20 64 | 65 73 63 72 69 62 65 73 |hapter d|escribes|
|00000440| 20 74 68 65 20 6d 65 74 | 68 6f 64 20 74 68 61 74 | the met|hod that|
|00000450| 20 70 72 6f 67 72 61 6d | 73 20 73 68 6f 75 6c 64 | program|s should|
|00000460| 20 75 73 65 20 74 6f 20 | 64 65 74 65 72 6d 69 6e | use to |determin|
|00000470| 65 20 69 66 20 74 68 65 | 0d 53 68 65 6c 6c 20 69 |e if the|.Shell i|
|00000480| 73 20 70 72 65 73 65 6e | 74 20 69 6e 20 74 68 65 |s presen|t in the|
|00000490| 20 73 79 73 74 65 6d 2e | 20 20 41 6e 20 65 78 61 | system.| An exa|
|000004a0| 6d 70 6c 65 20 70 72 6f | 63 65 64 75 72 65 20 28 |mple pro|cedure (|
|000004b0| 69 6e 20 61 73 73 65 6d | 62 6c 79 20 6c 61 6e 67 |in assem|bly lang|
|000004c0| 75 61 67 65 29 20 69 73 | 0d 67 69 76 65 6e 20 74 |uage) is|.given t|
|000004d0| 6f 20 69 6c 6c 75 73 74 | 72 61 74 65 20 74 68 65 |o illust|rate the|
|000004e0| 20 6d 65 74 68 6f 64 2e | 0a 0a cb f4 01 f8 08 cb | method.|........|
|000004f0| c0 0c 59 08 46 c0 43 68 | 61 70 74 65 72 20 34 20 |..Y.F.Ch|apter 4 |
|00000500| a9 a9 20 53 68 65 6c 6c | 20 46 75 6e 63 74 69 6f |.. Shell| Functio|
|00000510| 6e 73 0a c0 08 46 0c 59 | c0 cb f8 08 f4 01 cb 0a |ns...F.Y|........|
|00000520| 54 68 69 73 20 63 68 61 | 70 74 65 72 20 64 65 74 |This cha|pter det|
|00000530| 61 69 6c 73 20 65 61 63 | 68 20 6f 66 20 74 68 65 |ails eac|h of the|
|00000540| 20 61 76 61 69 6c 61 62 | 6c 65 20 53 68 65 6c 6c | availab|le Shell|
|00000550| 20 66 75 6e 63 74 69 6f | 6e 73 2c 20 61 6e 64 20 | functio|ns, and |
|00000560| 67 69 76 65 73 20 74 68 | 65 20 69 6e 70 75 74 0d |gives th|e input.|
|00000570| 70 61 72 61 6d 65 74 65 | 72 73 2c 20 72 65 73 75 |paramete|rs, resu|
|00000580| 6c 74 73 2c 20 70 6f 73 | 73 69 62 6c 65 20 65 72 |lts, pos|sible er|
|00000590| 72 6f 72 20 63 6f 64 65 | 73 2c 20 61 6e 64 20 65 |ror code|s, and e|
|000005a0| 78 61 6d 70 6c 65 73 20 | 69 6e 20 61 73 73 65 6d |xamples |in assem|
|000005b0| 62 6c 79 20 6c 61 6e 67 | 75 61 67 65 20 66 6f 72 |bly lang|uage for|
|000005c0| 0d 65 61 63 68 2e 0a 0a | cb f4 01 f8 08 cb c0 0c |.each...|........|
|000005d0| 59 08 46 c0 43 68 61 70 | 74 65 72 20 35 20 a9 a9 |Y.F.Chap|ter 5 ..|
|000005e0| 20 55 73 65 72 20 49 6e | 74 65 72 66 61 63 65 20 | User In|terface |
|000005f0| 67 75 69 64 65 6c 69 6e | 65 73 20 61 6e 64 20 73 |guidelin|es and s|
|00000600| 75 67 67 65 73 74 69 6f | 6e 73 0a c0 08 46 0c 59 |uggestio|ns...F.Y|
|00000610| c0 cb f8 08 f4 01 cb 0a | 54 68 69 73 20 63 68 61 |........|This cha|
|00000620| 70 74 65 72 20 67 69 76 | 65 73 20 73 6f 6d 65 20 |pter giv|es some |
|00000630| 62 61 73 69 63 20 67 75 | 69 64 65 6c 69 6e 65 73 |basic gu|idelines|
|00000640| 20 6f 6e 20 69 6d 70 6c | 65 6d 65 6e 74 69 6e 67 | on impl|ementing|
|00000650| 20 74 68 65 20 53 68 65 | 6c 6c 20 69 6e 74 65 72 | the She|ll inter|
|00000660| 66 61 63 65 20 73 6f 0d | 74 68 61 74 20 74 68 65 |face so.|that the|
|00000670| 20 75 73 65 72 20 77 69 | 6c 6c 20 62 65 20 61 62 | user wi|ll be ab|
|00000680| 6c 65 20 74 6f 20 74 61 | 6b 65 20 61 64 76 61 6e |le to ta|ke advan|
|00000690| 74 61 67 65 20 6f 66 20 | 61 6c 6c 20 6f 66 20 74 |tage of |all of t|
|000006a0| 68 65 20 53 68 65 6c 6c | 27 73 20 63 61 70 61 62 |he Shell|'s capab|
|000006b0| 69 6c 69 74 69 65 73 2e | 0a 0a cb f4 01 f8 08 cb |ilities.|........|
|000006c0| c0 0c 59 08 46 c0 41 70 | 70 65 6e 64 69 78 0a c0 |..Y.F.Ap|pendix..|
|000006d0| 08 46 0c 59 c0 cb f8 08 | f4 01 cb 0a 09 41 20 a9 |.F.Y....|.....A .|
|000006e0| 20 46 69 6c 65 20 46 6f | 72 6d 61 74 73 20 66 6f | File Fo|rmats fo|
|000006f0| 72 20 74 68 65 20 43 6c | 69 70 62 6f 61 72 64 0a |r the Cl|ipboard.|
|00000700| 09 42 20 a9 20 4d 65 6d | 6f 72 79 20 43 6f 6e 73 |.B . Mem|ory Cons|
|00000710| 69 64 65 72 61 74 69 6f | 6e 73 0a 0a dc 54 00 00 |ideratio|ns...T..|
|00000720| 00 00 00 00 dc 0c cb f4 | 01 f8 08 cb c0 0c 59 08 |........|......Y.|
|00000730| 46 c0 43 48 41 50 54 45 | 52 20 31 20 a9 a9 20 49 |F.CHAPTE|R 1 .. I|
|00000740| 4e 54 52 4f 44 55 43 54 | 49 4f 4e 20 54 4f 20 54 |NTRODUCT|ION TO T|
|00000750| 48 45 20 53 48 45 4c 4c | 0a c0 08 46 0c 59 c0 cb |HE SHELL|...F.Y..|
|00000760| f8 08 f4 01 cb 0a 0a 54 | 68 65 20 53 68 65 6c 6c |.......T|he Shell|
|00000770| 20 69 73 20 61 20 70 72 | 6f 67 72 61 6d 20 6d 61 | is a pr|ogram ma|
|00000780| 6e 61 67 65 72 2f 69 6e | 74 65 67 72 61 74 6f 72 |nager/in|tegrator|
|00000790| 20 64 65 76 65 6c 6f 70 | 65 64 20 62 79 20 57 6f | develop|ed by Wo|
|000007a0| 72 64 50 65 72 66 65 63 | 74 20 43 6f 72 70 6f 72 |rdPerfec|t Corpor|
|000007b0| 61 74 69 6f 6e 0d 74 6f | 20 68 65 6c 70 20 69 6e |ation.to| help in|
|000007c0| 74 65 67 72 61 74 65 20 | 57 6f 72 64 50 65 72 66 |tegrate |WordPerf|
|000007d0| 65 63 74 2c 20 4d 61 74 | 68 50 6c 61 6e 2c 20 61 |ect, Mat|hPlan, a|
|000007e0| 6e 64 20 6f 74 68 65 72 | 20 70 72 6f 67 72 61 6d |nd other| program|
|000007f0| 73 2e 20 20 0a 0a 54 68 | 65 20 53 68 65 6c 6c 20 |s. ..Th|e Shell |
|00000800| 70 72 6f 76 69 64 65 73 | 20 74 68 65 20 75 73 65 |provides| the use|
|00000810| 72 20 77 69 74 68 20 61 | 20 70 72 6f 67 72 61 6d |r with a| program|
|00000820| 20 6d 65 6e 75 20 66 72 | 6f 6d 20 77 68 69 63 68 | menu fr|om which|
|00000830| 20 70 72 6f 67 72 61 6d | 73 2c 20 44 4f 53 0d 63 | program|s, DOS.c|
|00000840| 6f 6d 6d 61 6e 64 73 2c | 20 62 61 74 63 68 20 66 |ommands,| batch f|
|00000850| 69 6c 65 73 2c 20 61 6e | 64 20 75 74 69 6c 69 74 |iles, an|d utilit|
|00000860| 69 65 73 20 63 61 6e 20 | 62 65 20 65 78 65 63 75 |ies can |be execu|
|00000870| 74 65 64 2e 20 20 54 68 | 65 20 75 73 65 72 20 63 |ted. Th|e user c|
|00000880| 61 6e 20 73 65 74 75 70 | 20 74 68 65 0d 6d 65 6e |an setup| the.men|
|00000890| 75 20 74 6f 20 69 6e 63 | 6c 75 64 65 20 77 68 61 |u to inc|lude wha|
|000008a0| 74 65 76 65 72 20 70 72 | 6f 67 72 61 6d 73 20 68 |tever pr|ograms h|
|000008b0| 65 20 6f 72 20 73 68 65 | 20 77 69 73 68 65 73 2e |e or she| wishes.|
|000008c0| 0a 0a 54 68 65 20 75 73 | 65 72 20 63 61 6e 20 6c |..The us|er can l|
|000008d0| 6f 61 64 20 73 65 76 65 | 72 61 6c 20 70 72 6f 67 |oad seve|ral prog|
|000008e0| 72 61 6d 73 20 69 6e 74 | 6f 20 6d 65 6d 6f 72 79 |rams int|o memory|
|000008f0| 20 63 6f 6e 63 75 72 72 | 65 6e 74 6c 79 2c 20 61 | concurr|ently, a|
|00000900| 6e 64 20 73 77 69 74 63 | 68 0d 62 65 74 77 65 65 |nd switc|h.betwee|
|00000910| 6e 20 74 68 6f 73 65 20 | 70 72 6f 67 72 61 6d 73 |n those |programs|
|00000920| 20 61 74 20 77 69 6c 6c | 20 75 6e 64 65 72 20 74 | at will| under t|
|00000930| 68 65 20 53 68 65 6c 6c | 2e 20 20 54 68 65 20 53 |he Shell|. The S|
|00000940| 68 65 6c 6c 20 61 6c 73 | 6f 20 70 72 6f 76 69 64 |hell als|o provid|
|00000950| 65 73 20 61 0d 22 63 6c | 69 70 62 6f 61 72 64 22 |es a."cl|ipboard"|
|00000960| 2c 20 6f 72 20 62 75 66 | 66 65 72 2c 20 66 6f 72 |, or buf|fer, for|
|00000970| 20 6d 6f 76 69 6e 67 20 | 64 61 74 61 20 28 74 65 | moving |data (te|
|00000980| 78 74 2c 20 6e 75 6d 62 | 65 72 73 2c 20 67 72 61 |xt, numb|ers, gra|
|00000990| 70 68 73 2c 20 65 74 63 | 2e 29 20 65 61 73 69 6c |phs, etc|.) easil|
|000009a0| 79 0d 62 65 74 77 65 65 | 6e 20 70 72 6f 67 72 61 |y.betwee|n progra|
|000009b0| 6d 73 2e 0a 0a 49 6e 63 | 6c 75 64 65 64 20 77 69 |ms...Inc|luded wi|
|000009c0| 74 68 20 74 68 65 20 53 | 68 65 6c 6c 20 69 6e 20 |th the S|hell in |
|000009d0| 74 68 65 20 57 6f 72 64 | 50 65 72 66 65 63 74 20 |the Word|Perfect |
|000009e0| 4c 69 62 72 61 72 79 20 | 70 61 63 6b 61 67 65 20 |Library |package |
|000009f0| 61 72 65 20 73 65 76 65 | 72 61 6c 20 64 65 73 6b |are seve|ral desk|
|00000a00| 74 6f 70 0d 75 74 69 6c | 69 74 79 20 70 72 6f 67 |top.util|ity prog|
|00000a10| 72 61 6d 73 2c 20 73 75 | 63 68 20 61 73 20 61 20 |rams, su|ch as a |
|00000a20| 63 61 6c 63 75 6c 61 74 | 6f 72 2c 20 61 20 63 61 |calculat|or, a ca|
|00000a30| 6c 65 6e 64 61 72 2c 20 | 61 20 6e 6f 74 65 62 6f |lendar, |a notebo|
|00000a40| 6f 6b 2c 20 61 20 44 4f | 53 20 66 69 6c 65 0d 6d |ok, a DO|S file.m|
|00000a50| 61 6e 61 67 65 72 2c 20 | 61 6e 64 20 6f 74 68 65 |anager, |and othe|
|00000a60| 72 73 20 a9 a9 20 61 6c | 6c 20 6f 66 20 77 68 69 |rs .. al|l of whi|
|00000a70| 63 68 20 63 61 6e 20 63 | 75 74 20 61 6e 64 20 70 |ch can c|ut and p|
|00000a80| 61 73 74 65 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |aste inf|ormation|
|00000a90| 20 74 6f 20 61 6e 64 20 | 66 72 6f 6d 0d 74 68 65 | to and |from.the|
|00000aa0| 20 63 6c 69 70 62 6f 61 | 72 64 2e 0a 0a 41 20 70 | clipboa|rd...A p|
|00000ab0| 72 6f 67 72 61 6d 20 74 | 68 61 74 20 63 61 6e 20 |rogram t|hat can |
|00000ac0| 69 6e 74 65 72 61 63 74 | 20 64 69 72 65 63 74 6c |interact| directl|
|00000ad0| 79 20 77 69 74 68 20 74 | 68 65 20 53 68 65 6c 6c |y with t|he Shell|
|00000ae0| 20 63 61 6e 20 74 61 6b | 65 20 61 64 76 61 6e 74 | can tak|e advant|
|00000af0| 61 67 65 20 6f 66 20 74 | 68 65 0d 66 6f 6c 6c 6f |age of t|he.follo|
|00000b00| 77 69 6e 67 20 66 65 61 | 74 75 72 65 73 20 61 6e |wing fea|tures an|
|00000b10| 64 20 63 61 70 61 62 69 | 6c 69 74 69 65 73 3a 0a |d capabi|lities:.|
|00000b20| 0a 09 31 2e cc 0c 16 cc | 53 75 73 70 65 6e 64 20 |..1.....|Suspend |
|00000b30| 6f 70 65 72 61 74 69 6f | 6e 20 61 6e 64 20 74 72 |operatio|n and tr|
|00000b40| 61 6e 73 66 65 72 20 63 | 6f 6e 74 72 6f 6c 20 74 |ansfer c|ontrol t|
|00000b50| 6f 20 74 68 65 20 53 68 | 65 6c 6c 20 6d 61 6e 61 |o the Sh|ell mana|
|00000b60| 67 65 72 2e 20 20 54 68 | 69 73 0d 61 6c 6c 6f 77 |ger. Th|is.allow|
|00000b70| 73 20 74 68 65 20 75 73 | 65 72 20 74 6f 20 6c 6f |s the us|er to lo|
|00000b80| 61 64 20 6f 74 68 65 72 | 20 70 72 6f 67 72 61 6d |ad other| program|
|00000b90| 73 20 63 6f 6e 63 75 72 | 72 65 6e 74 6c 79 20 61 |s concur|rently a|
|00000ba0| 6e 64 20 73 77 69 74 63 | 68 20 62 61 63 6b 0d 61 |nd switc|h back.a|
|00000bb0| 6e 64 20 66 6f 72 74 68 | 20 62 65 74 77 65 65 6e |nd forth| between|
|00000bc0| 20 70 72 6f 67 72 61 6d | 73 20 77 69 74 68 20 74 | program|s with t|
|00000bd0| 68 65 20 70 72 65 73 73 | 20 6f 66 20 61 20 6b 65 |he press| of a ke|
|00000be0| 79 2e 20 20 46 6f 72 20 | 65 78 61 6d 70 6c 65 2c |y. For |example,|
|00000bf0| 0d 74 68 65 20 75 73 65 | 72 20 69 73 20 61 62 6c |.the use|r is abl|
|00000c00| 65 20 74 6f 20 70 6f 70 | 20 69 6e 74 6f 20 61 6e |e to pop| into an|
|00000c10| 79 20 6f 66 20 74 68 65 | 20 64 65 73 6b 74 6f 70 |y of the| desktop|
|00000c20| 20 75 74 69 6c 69 74 69 | 65 73 20 28 63 61 6c 63 | utiliti|es (calc|
|00000c30| 75 6c 61 74 6f 72 2c 0d | 63 61 6c 65 6e 64 61 72 |ulator,.|calendar|
|00000c40| 2c 20 6e 6f 74 65 62 6f | 6f 6b 2c 20 65 74 63 2e |, notebo|ok, etc.|
|00000c50| 29 20 74 68 61 74 20 61 | 72 65 20 69 6e 63 6c 75 |) that a|re inclu|
|00000c60| 64 65 64 20 77 69 74 68 | 20 74 68 65 20 53 68 65 |ded with| the She|
|00000c70| 6c 6c 2e de 16 59 de 0a | 0a cc 0c 11 cc 32 2e cc |ll...Y..|.....2..|
|00000c80| 11 16 cc 57 72 69 74 65 | 20 6f 72 20 61 70 70 65 |...Write| or appe|
|00000c90| 6e 64 20 41 53 43 49 49 | 20 74 65 78 74 20 74 6f |nd ASCII| text to|
|00000ca0| 20 74 68 65 20 53 68 65 | 6c 6c 27 73 20 63 6c 69 | the She|ll's cli|
|00000cb0| 70 62 6f 61 72 64 2e 20 | 20 54 68 69 73 20 61 6c |pboard. | This al|
|00000cc0| 6c 6f 77 73 20 74 68 65 | 0d 75 73 65 72 20 74 6f |lows the|.user to|
|00000cd0| 20 65 61 73 69 6c 79 20 | 6d 6f 76 65 20 64 61 74 | easily |move dat|
|00000ce0| 61 20 66 72 6f 6d 20 6f | 6e 65 20 70 72 6f 67 72 |a from o|ne progr|
|00000cf0| 61 6d 20 74 6f 20 61 6e | 6f 74 68 65 72 2e de 16 |am to an|other...|
|00000d00| 59 de 0a 0a cc 0c 11 cc | 33 2e cc 11 16 cc 52 65 |Y.......|3.....Re|
|00000d10| 74 72 69 65 76 65 20 61 | 20 63 6f 70 79 20 6f 66 |trieve a| copy of|
|00000d20| 20 74 65 78 74 20 69 6e | 20 74 68 65 20 53 68 65 | text in| the She|
|00000d30| 6c 6c 27 73 20 63 6c 69 | 70 62 6f 61 72 64 2e de |ll's cli|pboard..|
|00000d40| 16 59 de 0a 0a cc 0c 11 | cc 34 2e cc 11 16 cc 54 |.Y......|.4.....T|
|00000d50| 61 6b 65 20 6f 66 20 61 | 64 76 61 6e 74 61 67 65 |ake of a|dvantage|
|00000d60| 20 6f 66 20 45 78 70 61 | 6e 64 65 64 20 4d 65 6d | of Expa|nded Mem|
|00000d70| 6f 72 79 2c 20 69 66 20 | 61 76 61 69 6c 61 62 6c |ory, if |availabl|
|00000d80| 65 2e 20 20 49 66 20 74 | 68 65 20 75 73 65 72 20 |e. If t|he user |
|00000d90| 68 61 73 0d 61 6e 20 49 | 6e 74 65 6c 20 41 62 6f |has.an I|ntel Abo|
|00000da0| 76 65 42 6f 61 72 64 20 | 28 63 29 2c 20 6f 72 20 |veBoard |(c), or |
|00000db0| 6f 74 68 65 72 20 45 78 | 70 61 6e 64 65 64 20 4d |other Ex|panded M|
|00000dc0| 65 6d 6f 72 79 20 62 6f | 61 72 64 20 74 68 61 74 |emory bo|ard that|
|00000dd0| 20 6d 65 65 74 73 0d 74 | 68 65 20 4c 6f 74 75 73 | meets.t|he Lotus|
|00000de0| 2f 49 6e 74 65 6c 2f 4d | 69 63 72 6f 73 6f 66 74 |/Intel/M|icrosoft|
|00000df0| 20 53 70 65 63 69 66 69 | 63 61 74 69 6f 6e 2c 20 | Specifi|cation, |
|00000e00| 74 68 65 20 53 68 65 6c | 6c 20 77 69 6c 6c 20 61 |the Shel|l will a|
|00000e10| 75 74 6f 6d 61 74 69 63 | 61 6c 6c 79 0d 73 77 61 |utomatic|ally.swa|
|00000e20| 70 20 70 72 6f 67 72 61 | 6d 73 20 6f 75 74 20 74 |p progra|ms out t|
|00000e30| 6f 20 74 68 65 20 74 68 | 65 20 65 78 70 61 6e 64 |o the th|e expand|
|00000e40| 65 64 20 6d 65 6d 6f 72 | 79 20 61 62 6f 76 65 20 |ed memor|y above |
|00000e50| 36 34 30 4b 2e 20 20 54 | 68 69 73 0d 61 6c 6c 6f |640K. T|his.allo|
|00000e60| 77 73 20 74 68 65 20 75 | 73 65 72 20 74 6f 20 6c |ws the u|ser to l|
|00000e70| 6f 61 64 20 75 70 20 6d | 61 6e 79 20 6d 6f 72 65 |oad up m|any more|
|00000e80| 20 70 72 6f 67 72 61 6d | 73 20 61 74 20 6f 6e 63 | program|s at onc|
|00000e90| 65 20 74 68 61 6e 20 77 | 6f 75 6c 64 0d 6e 6f 72 |e than w|ould.nor|
|00000ea0| 6d 61 6c 6c 79 20 66 69 | 74 20 69 6e 20 36 34 30 |mally fi|t in 640|
|00000eb0| 4b 20 6f 66 20 63 6f 6e | 76 65 6e 74 69 6f 6e 61 |K of con|ventiona|
|00000ec0| 6c 20 6d 65 6d 6f 72 79 | 2e de 16 59 de 0a 0a 41 |l memory|...Y...A|
|00000ed0| 6c 6c 20 70 72 6f 67 72 | 61 6d 73 2c 20 65 76 65 |ll progr|ams, eve|
|00000ee0| 6e 20 74 68 6f 73 65 20 | 74 68 61 74 20 64 6f 20 |n those |that do |
|00000ef0| 6e 6f 74 20 69 6e 74 65 | 72 61 63 74 20 64 69 72 |not inte|ract dir|
|00000f00| 65 63 74 6c 79 20 77 69 | 74 68 20 74 68 65 20 53 |ectly wi|th the S|
|00000f10| 68 65 6c 6c 2c 20 63 61 | 6e 20 74 61 6b 65 0d 61 |hell, ca|n take.a|
|00000f20| 64 76 61 6e 74 61 67 65 | 20 6f 66 20 74 68 65 20 |dvantage| of the |
|00000f30| 66 6f 6c 6c 6f 77 69 6e | 67 20 53 68 65 6c 6c 20 |followin|g Shell |
|00000f40| 66 65 61 74 75 72 65 73 | 20 61 6e 64 20 63 61 70 |features| and cap|
|00000f50| 61 62 69 6c 69 74 69 65 | 73 3a 0a 0a 09 31 2e cc |abilitie|s:...1..|
|00000f60| 0c 16 cc 53 74 61 72 74 | 20 74 68 65 20 70 72 6f |...Start| the pro|
|00000f70| 67 72 61 6d 20 66 72 6f | 6d 20 74 68 65 20 53 68 |gram fro|m the Sh|
|00000f80| 65 6c 6c 20 6d 65 6e 75 | 20 77 69 74 68 20 74 68 |ell menu| with th|
|00000f90| 65 20 70 72 65 73 73 20 | 6f 66 20 61 20 6b 65 79 |e press |of a key|
|00000fa0| 2e 20 20 54 68 65 0d 75 | 73 65 72 20 63 61 6e 20 |. The.u|ser can |
|00000fb0| 73 70 65 63 69 66 79 20 | 77 68 69 63 68 20 64 69 |specify |which di|
|00000fc0| 72 65 63 74 6f 72 79 20 | 74 6f 20 6d 61 6b 65 20 |rectory |to make |
|00000fd0| 74 68 65 20 6e 65 77 20 | 64 65 66 61 75 6c 74 20 |the new |default |
|00000fe0| 64 69 72 65 63 74 6f 72 | 79 0d 62 65 66 6f 72 65 |director|y.before|
|00000ff0| 20 73 74 61 72 74 69 6e | 67 20 74 68 65 20 70 72 | startin|g the pr|
|00001000| 6f 67 72 61 6d 2e 20 20 | 43 6f 6d 6d 61 6e 64 20 |ogram. |Command |
|00001010| 6c 69 6e 65 20 61 72 67 | 75 6d 65 6e 74 73 20 63 |line arg|uments c|
|00001020| 61 6e 20 61 6c 73 6f 20 | 62 65 0d 73 70 65 63 69 |an also |be.speci|
|00001030| 66 69 65 64 20 66 6f 72 | 20 65 61 63 68 20 70 72 |fied for| each pr|
|00001040| 6f 67 72 61 6d 20 6f 6e | 20 74 68 65 20 53 68 65 |ogram on| the She|
|00001050| 6c 6c 20 6d 65 6e 75 2e | 20 20 54 68 65 20 75 73 |ll menu.| The us|
|00001060| 65 72 20 63 61 6e 20 61 | 6c 73 6f 0d 63 72 65 61 |er can a|lso.crea|
|00001070| 74 65 20 73 75 62 a9 6d | 65 6e 75 73 20 66 6f 72 |te sub.m|enus for|
|00001080| 20 6f 72 67 61 6e 69 7a | 69 6e 67 20 74 68 65 69 | organiz|ing thei|
|00001090| 72 20 68 61 72 64 20 64 | 69 73 6b 20 61 6e 64 20 |r hard d|isk and |
|000010a0| 70 72 6f 67 72 61 6d 73 | 20 69 6e 0d 6c 6f 67 69 |programs| in.logi|
|000010b0| 63 61 6c 20 67 72 6f 75 | 70 69 6e 67 73 2e de 16 |cal grou|pings...|
|000010c0| 59 de 0a dc 64 00 00 00 | 00 00 00 dc 0c cc 0c 11 |Y...d...|........|
|000010d0| cc 32 2e cc 11 16 cc 55 | 73 65 20 74 68 65 20 53 |.2.....U|se the S|
|000010e0| 68 65 6c 6c 20 6b 65 79 | 62 6f 61 72 64 20 6d 61 |hell key|board ma|
|000010f0| 63 72 6f 20 66 61 63 69 | 6c 69 74 79 2e 20 20 54 |cro faci|lity. T|
|00001100| 68 69 73 20 61 6c 6c 6f | 77 73 20 74 68 65 20 75 |his allo|ws the u|
|00001110| 73 65 72 20 74 6f 20 64 | 65 66 69 6e 65 0d 61 20 |ser to d|efine.a |
|00001120| 73 65 72 69 65 73 20 6f | 66 20 6b 65 79 73 74 72 |series o|f keystr|
|00001130| 6f 6b 65 73 20 61 6e 64 | 20 61 73 73 69 67 6e 20 |okes and| assign |
|00001140| 74 68 65 6d 20 74 6f 20 | 65 69 74 68 65 72 20 61 |them to |either a|
|00001150| 6e 20 41 4c 54 a9 53 48 | 49 46 54 a9 6c 65 74 74 |n ALT.SH|IFT.lett|
|00001160| 65 72 0d 63 6f 6d 62 69 | 6e 61 74 69 6f 6e 20 6f |er.combi|nation o|
|00001170| 72 20 74 6f 20 61 20 66 | 69 6c 65 6e 61 6d 65 20 |r to a f|ilename |
|00001180| 6f 6e 20 64 69 73 6b 2e | 20 20 54 68 65 20 6b 65 |on disk.| The ke|
|00001190| 79 73 74 72 6f 6b 65 73 | 20 74 68 61 74 20 77 65 |ystrokes| that we|
|000011a0| 72 65 0d 72 65 63 6f 72 | 64 65 64 20 63 61 6e 20 |re.recor|ded can |
|000011b0| 62 65 20 70 6c 61 79 65 | 64 20 62 61 63 6b 20 66 |be playe|d back f|
|000011c0| 72 6f 6d 20 61 6e 79 20 | 70 72 6f 67 72 61 6d 2e |rom any |program.|
|000011d0| 20 20 54 68 65 72 65 20 | 69 73 20 6e 6f 20 6c 69 | There |is no li|
|000011e0| 6d 69 74 0d 28 65 78 63 | 65 70 74 20 64 69 73 6b |mit.(exc|ept disk|
|000011f0| 20 73 70 61 63 65 29 20 | 74 6f 20 74 68 65 20 6e | space) |to the n|
|00001200| 75 6d 62 65 72 20 6f 72 | 20 6c 65 6e 67 74 68 20 |umber or| length |
|00001210| 6f 66 20 53 68 65 6c 6c | 20 6d 61 63 72 6f 73 20 |of Shell| macros |
|00001220| 74 68 61 74 20 63 61 6e | 0d 62 65 20 63 72 65 61 |that can|.be crea|
|00001230| 74 65 64 2e de 16 59 de | 0a 0a cc 0c 11 cc 33 2e |ted...Y.|......3.|
|00001240| cc 11 16 cc 45 78 65 63 | 75 74 65 20 44 4f 53 20 |....Exec|ute DOS |
|00001250| 63 6f 6d 6d 61 6e 64 73 | 2c 20 62 61 74 63 68 20 |commands|, batch |
|00001260| 66 69 6c 65 73 2c 20 6f | 72 20 53 68 65 6c 6c 20 |files, o|r Shell |
|00001270| 75 74 69 6c 69 74 69 65 | 73 20 66 72 6f 6d 20 74 |utilitie|s from t|
|00001280| 68 65 20 53 68 65 6c 6c | 0d 6d 65 6e 75 2e de 16 |he Shell|.menu...|
|00001290| 59 de 0a 0a dc 14 00 00 | 00 00 00 00 dc 0c cb f4 |Y.......|........|
|000012a0| 01 f7 08 cb c0 0c 59 09 | 41 c0 43 48 41 50 54 45 |......Y.|A.CHAPTE|
|000012b0| 52 20 32 20 a9 a9 cc 09 | 16 cc 57 52 49 54 49 4e |R 2 ....|..WRITIN|
|000012c0| 47 20 50 52 4f 47 52 41 | 4d 53 20 54 48 41 54 20 |G PROGRA|MS THAT |
|000012d0| 49 4e 54 45 52 41 43 54 | 20 57 49 54 48 0d 54 48 |INTERACT| WITH.TH|
|000012e0| 45 20 53 48 45 4c 4c de | 16 41 de 0a c0 09 41 0c |E SHELL.|.A....A.|
|000012f0| 59 c0 cb f7 08 f4 01 cb | 0a 0a 49 6e 20 6f 72 64 |Y.......|..In ord|
|00001300| 65 72 20 66 6f 72 20 61 | 20 70 72 6f 67 72 61 6d |er for a| program|
|00001310| 20 74 6f 20 69 6e 74 65 | 72 61 63 74 20 64 69 72 | to inte|ract dir|
|00001320| 65 63 74 6c 79 20 77 69 | 74 68 20 74 68 65 20 53 |ectly wi|th the S|
|00001330| 68 65 6c 6c 2c 20 69 74 | 20 6d 75 73 74 20 70 65 |hell, it| must pe|
|00001340| 72 66 6f 72 6d 20 74 68 | 65 0d 66 6f 6c 6c 6f 77 |rform th|e.follow|
|00001350| 69 6e 67 20 62 61 73 69 | 63 20 73 74 65 70 73 3a |ing basi|c steps:|
|00001360| 0a 0a cc 0c 11 cc 31 2e | cc 11 16 cc 54 65 73 74 |......1.|....Test|
|00001370| 20 74 6f 20 73 65 65 20 | 77 68 65 74 68 65 72 20 | to see |whether |
|00001380| 6f 72 20 6e 6f 74 20 74 | 68 65 20 53 68 65 6c 6c |or not t|he Shell|
|00001390| 20 69 73 20 70 72 65 73 | 65 6e 74 20 69 6e 20 74 | is pres|ent in t|
|000013a0| 68 65 20 73 79 73 74 65 | 6d 2e 20 20 41 0d 6d 65 |he syste|m. A.me|
|000013b0| 74 68 6f 64 20 66 6f 72 | 20 64 6f 69 6e 67 20 74 |thod for| doing t|
|000013c0| 68 69 73 20 69 73 20 64 | 65 73 63 72 69 62 65 64 |his is d|escribed|
|000013d0| 20 69 6e 20 64 65 74 61 | 69 6c 20 69 6e 20 43 68 | in deta|il in Ch|
|000013e0| 61 70 74 65 72 20 33 2e | de 16 59 de 0a 0a cc 0c |apter 3.|..Y.....|
|000013f0| 11 cc 32 2e cc 11 16 cc | 49 66 20 74 68 65 20 53 |..2.....|If the S|
|00001400| 68 65 6c 6c 20 69 73 20 | 70 72 65 73 65 6e 74 2c |hell is |present,|
|00001410| 20 75 73 65 20 46 75 6e | 63 74 69 6f 6e 20 35 30 | use Fun|ction 50|
|00001420| 68 20 74 6f 20 72 65 71 | 75 65 73 74 20 61 20 75 |h to req|uest a u|
|00001430| 6e 69 71 75 65 20 70 72 | 6f 67 72 61 6d 0d 49 44 |nique pr|ogram.ID|
|00001440| 20 63 6f 64 65 2e 20 20 | 54 68 69 73 20 63 6f 64 | code. |This cod|
|00001450| 65 20 69 73 20 74 68 65 | 6e 20 75 73 65 64 20 69 |e is the|n used i|
|00001460| 6e 20 73 75 62 73 65 71 | 75 65 6e 74 20 66 75 6e |n subseq|uent fun|
|00001470| 63 74 69 6f 6e 20 63 61 | 6c 6c 73 20 74 6f 20 74 |ction ca|lls to t|
|00001480| 68 65 0d 53 68 65 6c 6c | 2e de 16 59 de 0a 0a cc |he.Shell|...Y....|
|00001490| 0c 11 cc 33 2e cc 11 16 | cc 52 65 6c 65 61 73 65 |...3....|.Release|
|000014a0| 20 61 6e 79 20 6d 65 6d | 6f 72 79 20 74 68 61 74 | any mem|ory that|
|000014b0| 20 69 73 20 6e 6f 74 20 | 6e 65 65 64 65 64 2e 20 | is not |needed. |
|000014c0| 20 54 68 65 20 70 72 6f | 67 72 61 6d 20 73 68 6f | The pro|gram sho|
|000014d0| 75 6c 64 0d 64 65 74 65 | 72 6d 69 6e 65 20 77 68 |uld.dete|rmine wh|
|000014e0| 61 74 20 6d 65 6d 6f 72 | 79 20 69 74 20 6e 65 65 |at memor|y it nee|
|000014f0| 64 73 20 66 6f 72 20 64 | 61 74 61 2c 20 62 75 66 |ds for d|ata, buf|
|00001500| 66 65 72 73 2c 20 65 74 | 63 2e 2c 20 61 6e 64 20 |fers, et|c., and |
|00001510| 72 65 6c 65 61 73 65 0d | 61 6e 79 20 65 78 74 72 |release.|any extr|
|00001520| 61 20 6d 65 6d 6f 72 79 | 20 75 73 69 6e 67 20 44 |a memory| using D|
|00001530| 4f 53 20 66 75 6e 63 74 | 69 6f 6e 20 34 41 68 2e |OS funct|ion 4Ah.|
|00001540| de 16 59 de 0a 0a cc 0c | 11 cc cc 11 16 cc 57 68 |..Y.....|......Wh|
|00001550| 65 6e 20 44 4f 53 20 6c | 6f 61 64 73 20 61 20 70 |en DOS l|oads a p|
|00001560| 72 6f 67 72 61 6d 20 69 | 6e 74 6f 20 6d 65 6d 6f |rogram i|nto memo|
|00001570| 72 79 2c 20 61 6c 6c 20 | 61 76 61 69 6c 61 62 6c |ry, all |availabl|
|00001580| 65 20 6d 65 6d 6f 72 79 | 20 69 73 0d 61 73 73 69 |e memory| is.assi|
|00001590| 67 6e 65 64 20 74 6f 20 | 74 68 61 74 20 70 72 6f |gned to |that pro|
|000015a0| 67 72 61 6d 2e 20 20 49 | 6e 20 6f 72 64 65 72 20 |gram. I|n order |
|000015b0| 66 6f 72 20 74 68 65 20 | 53 68 65 6c 6c 20 74 6f |for the |Shell to|
|000015c0| 20 62 65 20 61 62 6c 65 | 20 74 6f 20 6c 6f 61 64 | be able| to load|
|000015d0| 0d 6f 74 68 65 72 20 70 | 72 6f 67 72 61 6d 73 20 |.other p|rograms |
|000015e0| 63 6f 6e 63 75 72 72 65 | 6e 74 6c 79 20 69 6e 74 |concurre|ntly int|
|000015f0| 6f 20 6d 65 6d 6f 72 79 | 2c 20 70 72 6f 67 72 61 |o memory|, progra|
|00001600| 6d 73 20 74 68 61 74 20 | 69 6e 74 65 72 61 63 74 |ms that |interact|
|00001610| 20 77 69 74 68 0d 74 68 | 65 20 53 68 65 6c 6c 20 | with.th|e Shell |
|00001620| 6d 75 73 74 20 72 65 6c | 65 61 73 65 20 65 78 74 |must rel|ease ext|
|00001630| 72 61 20 6d 65 6d 6f 72 | 79 20 62 79 20 22 73 68 |ra memor|y by "sh|
|00001640| 72 69 6e 6b 69 6e 67 22 | 20 64 6f 77 6e 20 77 69 |rinking"| down wi|
|00001650| 74 68 20 44 4f 53 0d 66 | 75 6e 63 74 69 6f 6e 20 |th DOS.f|unction |
|00001660| 34 41 68 2e 20 20 54 68 | 69 73 20 73 68 6f 75 6c |4Ah. Th|is shoul|
|00001670| 64 20 62 65 20 64 6f 6e | 65 20 61 73 20 73 6f 6f |d be don|e as soo|
|00001680| 6e 20 61 73 20 74 68 65 | 20 70 72 6f 67 72 61 6d |n as the| program|
|00001690| 20 64 65 74 65 72 6d 69 | 6e 65 73 0d 74 68 61 74 | determi|nes.that|
|000016a0| 20 69 74 20 68 61 73 20 | 62 65 65 6e 20 6c 6f 61 | it has |been loa|
|000016b0| 64 65 64 20 75 6e 64 65 | 72 20 74 68 65 20 53 68 |ded unde|r the Sh|
|000016c0| 65 6c 6c 2e de 16 59 de | 0a 0a cc 0c 11 cc cc 11 |ell...Y.|........|
|000016d0| 16 cc 4d 6f 73 74 20 57 | 6f 72 64 50 65 72 66 65 |..Most W|ordPerfe|
|000016e0| 63 74 20 70 72 6f 67 72 | 61 6d 73 20 75 73 65 20 |ct progr|ams use |
|000016f0| 6c 65 73 73 20 6d 65 6d | 6f 72 79 20 66 6f 72 20 |less mem|ory for |
|00001700| 62 75 66 66 65 72 73 2c | 20 65 74 63 2e 20 77 68 |buffers,| etc. wh|
|00001710| 65 6e 0d 6c 6f 61 64 65 | 64 20 75 6e 64 65 72 20 |en.loade|d under |
|00001720| 74 68 65 20 53 68 65 6c | 6c 20 74 68 61 6e 20 74 |the Shel|l than t|
|00001730| 68 65 79 20 64 6f 20 77 | 68 65 6e 20 6c 6f 61 64 |hey do w|hen load|
|00001740| 65 64 20 6e 6f 72 6d 61 | 6c 6c 79 20 66 72 6f 6d |ed norma|lly from|
|00001750| 20 44 4f 53 2e 20 0d 54 | 68 69 73 20 6d 61 6b 65 | DOS. .T|his make|
|00001760| 73 20 69 74 20 70 6f 73 | 73 69 62 6c 65 20 74 6f |s it pos|sible to|
|00001770| 20 6c 6f 61 64 20 73 65 | 76 65 72 61 6c 20 70 72 | load se|veral pr|
|00001780| 6f 67 72 61 6d 20 63 6f | 6e 63 75 72 72 65 6e 74 |ogram co|ncurrent|
|00001790| 6c 79 20 75 6e 64 65 72 | 20 74 68 65 0d 53 68 65 |ly under| the.She|
|000017a0| 6c 6c 2e de 16 59 de 0a | 0a cc 0c 11 cc 34 2e cc |ll...Y..|.....4..|
|000017b0| 11 16 cc 55 73 65 20 53 | 68 65 6c 6c 20 46 75 6e |...Use S|hell Fun|
|000017c0| 63 74 69 6f 6e 20 35 37 | 68 20 74 6f 20 64 65 74 |ction 57|h to det|
|000017d0| 65 72 6d 69 6e 65 20 69 | 66 20 74 68 65 20 53 68 |ermine i|f the Sh|
|000017e0| 65 6c 6c 20 69 73 20 6c | 6f 61 64 69 6e 67 20 74 |ell is l|oading t|
|000017f0| 68 65 0d 70 72 6f 67 72 | 61 6d 20 61 73 20 70 61 |he.progr|am as pa|
|00001800| 72 74 20 6f 66 20 61 20 | 22 73 74 61 72 74 a9 75 |rt of a |"start.u|
|00001810| 70 22 20 70 72 6f 63 65 | 64 75 72 65 2e 20 20 49 |p" proce|dure. I|
|00001820| 66 20 73 6f 2c 20 74 68 | 65 20 70 72 6f 67 72 61 |f so, th|e progra|
|00001830| 6d 20 73 68 6f 75 6c 64 | 0d 64 6f 20 61 6e 79 20 |m should|.do any |
|00001840| 69 6e 69 74 69 61 6c 69 | 7a 61 74 69 6f 6e 2c 20 |initiali|zation, |
|00001850| 74 68 65 6e 20 74 72 61 | 6e 73 66 65 72 20 63 6f |then tra|nsfer co|
|00001860| 6e 74 72 6f 6c 20 62 61 | 63 6b 20 74 6f 20 74 68 |ntrol ba|ck to th|
|00001870| 65 20 53 68 65 6c 6c 20 | 28 75 73 69 6e 67 0d 46 |e Shell |(using.F|
|00001880| 75 6e 63 74 69 6f 6e 20 | 35 30 68 29 20 62 65 66 |unction |50h) bef|
|00001890| 6f 72 65 20 6d 6f 64 69 | 66 79 69 6e 67 20 74 68 |ore modi|fying th|
|000018a0| 65 20 73 63 72 65 65 6e | 20 6f 72 20 61 73 6b 69 |e screen| or aski|
|000018b0| 6e 67 20 66 6f 72 20 61 | 6e 79 20 75 73 65 72 0d |ng for a|ny user.|
|000018c0| 69 6e 70 75 74 2e de 16 | 59 de 0a 0a cc 0c 11 cc |input...|Y.......|
|000018d0| 35 2e cc 11 16 cc 43 68 | 65 63 6b 20 75 73 65 72 |5.....Ch|eck user|
|000018e0| 20 69 6e 70 75 74 20 77 | 68 65 72 65 20 61 70 70 | input w|here app|
|000018f0| 6c 69 63 61 62 6c 65 20 | 66 6f 72 20 74 68 65 20 |licable |for the |
|00001900| 22 53 68 65 6c 6c 22 20 | 6b 65 79 20 28 43 74 72 |"Shell" |key (Ctr|
|00001910| 6c a9 46 31 29 20 61 6e | 64 0d 75 73 65 20 74 68 |l.F1) an|d.use th|
|00001920| 65 20 53 68 65 6c 6c 20 | 66 75 6e 63 74 69 6f 6e |e Shell |function|
|00001930| 73 20 74 6f 20 69 6e 74 | 65 72 61 63 74 20 77 69 |s to int|eract wi|
|00001940| 74 68 20 74 68 65 20 53 | 68 65 6c 6c 20 28 69 2e |th the S|hell (i.|
|00001950| 65 2e 2c 20 67 6f 20 74 | 6f 20 53 68 65 6c 6c 0d |e., go t|o Shell.|
|00001960| 74 65 6d 70 6f 72 61 72 | 69 6c 79 2c 20 77 72 69 |temporar|ily, wri|
|00001970| 74 65 20 6f 72 20 61 70 | 70 65 6e 64 20 64 61 74 |te or ap|pend dat|
|00001980| 61 20 74 6f 20 74 68 65 | 20 63 6c 69 70 62 6f 61 |a to the| clipboa|
|00001990| 72 64 2c 20 67 65 74 20 | 64 61 74 61 20 66 72 6f |rd, get |data fro|
|000019a0| 6d 20 74 68 65 0d 63 6c | 69 70 62 6f 61 72 64 2c |m the.cl|ipboard,|
|000019b0| 20 65 74 63 2e 29 de 16 | 59 de 0a 0a cc 0c 11 cc | etc.)..|Y.......|
|000019c0| 36 2e cc 11 16 cc 42 65 | 66 6f 72 65 20 74 65 72 |6.....Be|fore ter|
|000019d0| 6d 69 6e 61 74 69 6e 67 | 2c 20 74 68 65 20 70 72 |minating|, the pr|
|000019e0| 6f 67 72 61 6d 20 73 68 | 6f 75 6c 64 20 69 73 73 |ogram sh|ould iss|
|000019f0| 75 65 20 46 75 6e 63 74 | 69 6f 6e 20 35 35 68 20 |ue Funct|ion 55h |
|00001a00| 28 52 65 71 75 65 73 74 | 0d 70 65 72 6d 69 73 73 |(Request|.permiss|
|00001a10| 69 6f 6e 20 74 6f 20 65 | 78 69 74 29 20 73 6f 20 |ion to e|xit) so |
|00001a20| 74 68 61 74 20 74 68 65 | 20 53 68 65 6c 6c 20 63 |that the| Shell c|
|00001a30| 61 6e 20 69 6e 73 75 72 | 65 20 74 68 61 74 20 61 |an insur|e that a|
|00001a40| 6c 6c 20 70 72 6f 67 72 | 61 6d 73 20 65 78 69 74 |ll progr|ams exit|
|00001a50| 0d 69 6e 20 74 68 65 20 | 72 65 76 65 72 73 65 20 |.in the |reverse |
|00001a60| 6f 72 64 65 72 20 74 68 | 61 74 20 74 68 65 79 20 |order th|at they |
|00001a70| 77 65 72 65 20 6c 6f 61 | 64 65 64 20 69 6e 74 6f |were loa|ded into|
|00001a80| 20 6d 65 6d 6f 72 79 2e | 20 20 54 68 69 73 20 69 | memory.| This i|
|00001a90| 73 0d 6e 65 63 65 73 73 | 61 72 79 20 66 6f 72 20 |s.necess|ary for |
|00001aa0| 44 4f 53 20 74 6f 20 6f | 70 65 72 61 74 65 20 70 |DOS to o|perate p|
|00001ab0| 72 6f 70 65 72 6c 79 2e | de 16 59 de 0a 0a 43 68 |roperly.|..Y...Ch|
|00001ac0| 61 70 74 65 72 73 20 33 | 20 61 6e 64 20 34 20 64 |apters 3| and 4 d|
|00001ad0| 65 73 63 72 69 62 65 20 | 68 6f 77 20 74 6f 20 74 |escribe |how to t|
|00001ae0| 65 73 74 20 66 6f 72 20 | 74 68 65 20 53 68 65 6c |est for |the Shel|
|00001af0| 6c 20 61 6e 64 20 6d 61 | 6b 65 20 66 75 6e 63 74 |l and ma|ke funct|
|00001b00| 69 6f 6e 20 63 61 6c 6c | 73 20 74 6f 0d 74 68 65 |ion call|s to.the|
|00001b10| 20 53 68 65 6c 6c 2e 0a | dc 60 00 00 00 00 00 00 | Shell..|.`......|
|00001b20| dc 0c cb f4 01 f8 08 cb | c0 0c 59 08 46 c0 43 48 |........|..Y.F.CH|
|00001b30| 41 50 54 45 52 20 33 20 | a9 a9 20 54 45 53 54 49 |APTER 3 |.. TESTI|
|00001b40| 4e 47 20 46 4f 52 20 54 | 48 45 20 50 52 45 53 45 |NG FOR T|HE PRESE|
|00001b50| 4e 43 45 20 4f 46 20 54 | 48 45 20 53 48 45 4c 4c |NCE OF T|HE SHELL|
|00001b60| 0a c0 08 46 0c 59 c0 cb | f8 08 f4 01 cb 0a 54 68 |...F.Y..|......Th|
|00001b70| 69 73 20 63 68 61 70 74 | 65 72 20 64 65 73 63 72 |is chapt|er descr|
|00001b80| 69 62 65 73 20 68 6f 77 | 20 74 6f 20 75 73 65 20 |ibes how| to use |
|00001b90| 74 68 65 20 44 4f 53 20 | 22 67 65 74 20 69 6e 74 |the DOS |"get int|
|00001ba0| 65 72 72 75 70 74 20 76 | 65 63 74 6f 72 22 20 74 |errupt v|ector" t|
|00001bb0| 65 63 68 6e 69 71 75 65 | 20 74 6f 0d 74 65 73 74 |echnique| to.test|
|00001bc0| 20 77 68 65 74 68 65 72 | 20 6f 72 20 6e 6f 74 20 | whether| or not |
|00001bd0| 74 68 65 20 53 68 65 6c | 6c 20 69 73 20 70 72 65 |the Shel|l is pre|
|00001be0| 73 65 6e 74 2e 20 20 41 | 6e 79 20 70 72 6f 67 72 |sent. A|ny progr|
|00001bf0| 61 6d 20 63 61 6e 20 75 | 73 65 20 74 68 65 73 65 |am can u|se these|
|00001c00| 20 73 74 65 70 73 20 74 | 6f 0d 74 65 73 74 20 66 | steps t|o.test f|
|00001c10| 6f 72 20 74 68 65 20 70 | 72 65 73 65 6e 63 65 20 |or the p|resence |
|00001c20| 6f 66 20 74 68 65 20 53 | 68 65 6c 6c 2e 0a 0a 31 |of the S|hell...1|
|00001c30| 2e cc 0c 11 cc 55 73 65 | 20 74 68 65 20 44 4f 53 |.....Use| the DOS|
|00001c40| 20 22 67 65 74 20 69 6e | 74 65 72 72 75 70 74 20 | "get in|terrupt |
|00001c50| 76 65 63 74 6f 72 22 20 | 63 6f 6d 6d 61 6e 64 20 |vector" |command |
|00001c60| 28 44 4f 53 20 66 75 6e | 63 74 69 6f 6e 20 33 35 |(DOS fun|ction 35|
|00001c70| 68 29 20 74 6f 20 67 65 | 74 20 74 68 65 0d 63 6f |h) to ge|t the.co|
|00001c80| 6e 74 65 6e 74 73 20 6f | 66 20 69 6e 74 65 72 72 |ntents o|f interr|
|00001c90| 75 70 74 20 76 65 63 74 | 6f 72 20 6e 75 6d 62 65 |upt vect|or numbe|
|00001ca0| 72 20 31 41 68 20 28 61 | 64 64 72 65 73 73 65 73 |r 1Ah (a|ddresses|
|00001cb0| 20 30 30 30 30 3a 30 30 | 36 38 20 74 68 72 6f 75 | 0000:00|68 throu|
|00001cc0| 67 68 0d 30 30 30 30 3a | 30 30 36 42 29 2e de 11 |gh.0000:|006B)...|
|00001cd0| 59 de 0a 0a cc 0c 11 cc | 54 68 65 20 53 68 65 6c |Y.......|The Shel|
|00001ce0| 6c 20 75 73 65 73 20 74 | 68 69 73 20 69 6e 74 65 |l uses t|his inte|
|00001cf0| 72 72 75 70 74 20 76 65 | 63 74 6f 72 20 74 6f 20 |rrupt ve|ctor to |
|00001d00| 70 65 72 66 6f 72 6d 20 | 61 6c 6c 20 69 6e 74 65 |perform |all inte|
|00001d10| 72 61 63 74 69 6f 6e 20 | 62 65 74 77 65 65 6e 0d |raction |between.|
|00001d20| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 70 72 6f 67 |applicat|ion prog|
|00001d30| 72 61 6d 73 20 61 6e 64 | 20 74 68 65 20 53 68 65 |rams and| the She|
|00001d40| 6c 6c 20 6d 61 6e 61 67 | 65 72 2e 20 20 54 68 65 |ll manag|er. The|
|00001d50| 20 4f 46 46 53 45 54 20 | 6f 66 20 74 68 65 20 69 | OFFSET |of the i|
|00001d60| 6e 74 65 72 72 75 70 74 | 0d 73 65 72 76 69 63 65 |nterrupt|.service|
|00001d70| 20 72 6f 75 74 69 6e 65 | 20 61 64 64 72 65 73 73 | routine| address|
|00001d80| 20 69 73 20 73 74 6f 72 | 65 64 20 69 6e 20 74 68 | is stor|ed in th|
|00001d90| 65 20 77 6f 72 64 20 6c | 6f 63 61 74 65 64 20 61 |e word l|ocated a|
|00001da0| 74 20 61 64 64 72 65 73 | 73 20 30 30 30 30 3a 30 |t addres|s 0000:0|
|00001db0| 30 36 38 68 3b 0d 74 68 | 65 20 53 45 47 4d 45 4e |068h;.th|e SEGMEN|
|00001dc0| 54 20 61 64 64 72 65 73 | 73 20 69 73 20 73 74 6f |T addres|s is sto|
|00001dd0| 72 65 64 20 69 6e 20 74 | 68 65 20 77 6f 72 64 20 |red in t|he word |
|00001de0| 6c 6f 63 61 74 65 64 20 | 61 74 20 61 64 64 72 65 |located |at addre|
|00001df0| 73 73 20 30 30 30 30 3a | 30 30 36 41 68 2e de 11 |ss 0000:|006Ah...|
|00001e00| 59 de 0a 0a 32 2e cc 0c | 11 cc 43 6f 6d 70 61 72 |Y...2...|..Compar|
|00001e10| 65 20 74 68 65 20 63 6f | 6e 74 65 6e 74 73 20 6f |e the co|ntents o|
|00001e20| 66 20 61 6e 20 41 53 43 | 49 49 20 73 74 72 69 6e |f an ASC|II strin|
|00001e30| 67 20 77 68 69 63 68 20 | 73 74 61 72 74 73 20 61 |g which |starts a|
|00001e40| 74 20 74 68 65 20 61 64 | 64 72 65 73 73 0d 73 70 |t the ad|dress.sp|
|00001e50| 65 63 69 66 69 65 64 20 | 62 79 20 74 68 65 20 63 |ecified |by the c|
|00001e60| 6f 6e 74 65 6e 74 73 20 | 6f 66 20 74 68 65 20 69 |ontents |of the i|
|00001e70| 6e 74 65 72 72 75 70 74 | 20 76 65 63 74 6f 72 20 |nterrupt| vector |
|00001e80| 31 41 68 20 70 6c 75 73 | 20 61 20 66 69 78 65 64 |1Ah plus| a fixed|
|00001e90| 20 6f 66 66 73 65 74 20 | 6f 66 0d 32 20 62 79 74 | offset |of.2 byt|
|00001ea0| 65 73 20 74 6f 20 74 68 | 65 20 73 74 72 69 6e 67 |es to th|e string|
|00001eb0| 20 22 53 48 45 4c 4c 30 | 30 31 22 2e de 11 59 de | "SHELL0|01"...Y.|
|00001ec0| 0a 0a cc 0c 11 cc 49 66 | 20 74 68 65 20 72 65 73 |......If| the res|
|00001ed0| 75 6c 74 20 6f 66 20 74 | 68 65 20 73 74 72 69 6e |ult of t|he strin|
|00001ee0| 67 20 63 6f 6d 70 61 72 | 69 73 6f 6e 20 69 73 20 |g compar|ison is |
|00001ef0| 70 6f 73 69 74 69 76 65 | 2c 20 74 68 65 20 53 68 |positive|, the Sh|
|00001f00| 65 6c 6c 20 69 73 20 70 | 72 65 73 65 6e 74 20 61 |ell is p|resent a|
|00001f10| 6e 64 0d 63 61 6e 20 62 | 65 20 63 61 6c 6c 65 64 |nd.can b|e called|
|00001f20| 20 76 69 61 20 69 6e 74 | 65 72 72 75 70 74 20 31 | via int|errupt 1|
|00001f30| 41 68 2e de 11 59 de 0a | 0a 0a cb f4 01 f8 08 cb |Ah...Y..|........|
|00001f40| c0 0c 59 08 46 c0 45 78 | 61 6d 70 6c 65 0a c0 08 |..Y.F.Ex|ample...|
|00001f50| 46 0c 59 c0 cb f8 08 f4 | 01 cb 0a 54 68 65 20 66 |F.Y.....|...The f|
|00001f60| 6f 6c 6c 6f 77 69 6e 67 | 20 63 6f 64 65 20 69 73 |ollowing| code is|
|00001f70| 20 61 6e 20 65 78 61 6d | 70 6c 65 20 6f 66 20 74 | an exam|ple of t|
|00001f80| 68 65 20 74 65 63 68 6e | 69 71 75 65 20 64 65 73 |he techn|ique des|
|00001f90| 63 72 69 62 65 64 20 61 | 62 6f 76 65 20 74 6f 20 |cribed a|bove to |
|00001fa0| 64 65 74 65 72 6d 69 6e | 65 0d 69 66 20 74 68 65 |determin|e.if the|
|00001fb0| 20 53 68 65 6c 6c 20 69 | 73 20 70 72 65 73 65 6e | Shell i|s presen|
|00001fc0| 74 2e 0a 0a 3b 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |t...;***|********|
|00001fd0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001fe0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001ff0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002000| 2a 2a ac 2a 2a 2a 0a 3b | 0a 3b 09 54 68 65 20 66 |**.***.;|.;.The f|
|00002010| 6f 6c 6c 6f 77 69 6e 67 | 20 70 72 6f 63 65 64 75 |ollowing| procedu|
|00002020| 72 65 20 64 65 74 65 72 | 6d 69 6e 65 73 20 77 68 |re deter|mines wh|
|00002030| 65 74 68 65 72 20 6f 72 | 20 6e 6f 74 20 74 68 65 |ether or| not the|
|00002040| 20 53 68 65 6c 6c 0a 3b | 09 69 73 20 70 72 65 73 | Shell.;|.is pres|
|00002050| 65 6e 74 20 69 6e 20 74 | 68 65 20 73 79 73 74 65 |ent in t|he syste|
|00002060| 6d 2e 20 20 0a 3b 0a 3b | 09 9d 52 45 53 55 4c 54 |m. .;.;|..RESULT|
|00002070| 3a 9c 09 43 41 52 52 59 | 20 46 4c 41 47 20 69 73 |:..CARRY| FLAG is|
|00002080| 20 53 45 54 09 69 66 20 | 74 68 65 20 53 68 65 6c | SET.if |the Shel|
|00002090| 6c 20 69 73 20 70 72 65 | 73 65 6e 74 0a 3b 09 09 |l is pre|sent.;..|
|000020a0| 09 43 41 52 52 59 20 46 | 4c 41 47 20 69 73 20 43 |.CARRY F|LAG is C|
|000020b0| 4c 45 41 52 09 69 66 20 | 74 68 65 20 53 68 65 6c |LEAR.if |the Shel|
|000020c0| 6c 20 69 73 20 6e 6f 74 | 20 70 72 65 73 65 6e 74 |l is not| present|
|000020d0| 0a 3b 0a 3b 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |.;.;****|********|
|000020e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000020f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002100| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002110| 2a ac 2a 2a 2a 0a 0a 54 | 65 73 74 5f 46 6f 72 5f |*.***..T|est_For_|
|00002120| 53 68 65 6c 6c 20 50 52 | 4f 43 09 4e 45 41 52 0a |Shell PR|OC.NEAR.|
|00002130| 0a 09 50 55 53 48 09 09 | 41 58 0a 09 50 55 53 48 |..PUSH..|AX..PUSH|
|00002140| 09 09 42 58 0a 09 50 55 | 53 48 09 09 43 58 0a 09 |..BX..PU|SH..CX..|
|00002150| 50 55 53 48 09 09 53 49 | 0a 09 50 55 53 48 09 09 |PUSH..SI|..PUSH..|
|00002160| 44 49 0a 09 50 55 53 48 | 09 09 44 53 0a 09 50 55 |DI..PUSH|..DS..PU|
|00002170| 53 48 09 09 45 53 0a 0a | 09 50 55 53 48 09 09 43 |SH..ES..|.PUSH..C|
|00002180| 53 0a 09 50 4f 50 09 09 | 44 53 09 09 09 3b 20 70 |S..POP..|DS...; p|
|00002190| 72 65 70 61 72 65 20 44 | 53 20 66 6f 72 20 73 74 |repare D|S for st|
|000021a0| 72 69 6e 67 20 63 6f 6d | 70 61 72 65 0a 0a 09 4d |ring com|pare...M|
|000021b0| 4f 56 09 09 41 48 2c 33 | 35 68 dc 66 00 00 00 00 |OV..AH,3|5h.f....|
|000021c0| 00 00 dc 8c 09 4d 4f 56 | 09 09 41 4c 2c 31 41 68 |.....MOV|..AL,1Ah|
|000021d0| 09 09 3b 20 69 73 73 75 | 65 20 22 67 65 74 20 69 |..; issu|e "get i|
|000021e0| 6e 74 65 72 72 75 70 74 | 20 76 65 63 74 6f 72 22 |nterrupt| vector"|
|000021f0| 0a 09 49 4e 54 09 09 32 | 31 68 0a 0a 09 4d 4f 56 |..INT..2|1h...MOV|
|00002200| 09 09 44 49 2c 42 58 0a | 09 41 44 44 09 09 44 49 |..DI,BX.|.ADD..DI|
|00002210| 2c 32 0a 0a 09 4d 4f 56 | 09 09 53 49 2c 4f 46 46 |,2...MOV|..SI,OFF|
|00002220| 53 45 54 20 61 73 63 69 | 69 5f 6e 61 6d 65 0a 0a |SET asci|i_name..|
|00002230| 09 4d 4f 56 09 09 43 58 | 2c 38 0a 09 43 4c 44 0a |.MOV..CX|,8..CLD.|
|00002240| 09 52 45 50 45 09 09 43 | 4d 50 53 42 0a 09 4a 4e |.REPE..C|MPSB..JN|
|00002250| 45 09 09 54 65 73 74 5f | 4e 6f 0a 0a 54 65 73 74 |E..Test_|No..Test|
|00002260| 5f 59 65 73 3a 0a 09 53 | 54 43 0a 09 4a 4d 50 09 |_Yes:..S|TC..JMP.|
|00002270| 09 54 65 73 74 5f 45 78 | 69 74 0a 0a 54 65 73 74 |.Test_Ex|it..Test|
|00002280| 5f 4e 6f 3a 0a 09 43 4c | 43 0a 0a 54 65 73 74 5f |_No:..CL|C..Test_|
|00002290| 45 78 69 74 3a 0a 09 50 | 4f 50 09 09 45 53 0a 09 |Exit:..P|OP..ES..|
|000022a0| 50 4f 50 09 09 44 53 0a | 09 50 4f 50 09 09 44 49 |POP..DS.|.POP..DI|
|000022b0| 0a 09 50 4f 50 09 09 53 | 49 0a 09 50 4f 50 09 09 |..POP..S|I..POP..|
|000022c0| 43 58 0a 09 50 4f 50 09 | 09 42 58 0a 09 50 4f 50 |CX..POP.|.BX..POP|
|000022d0| 09 09 41 58 0a 09 52 45 | 54 0a 0a 61 73 63 69 69 |..AX..RE|T..ascii|
|000022e0| 5f 6e 61 6d 65 3a 20 44 | 42 09 22 53 48 45 4c 4c |_name: D|B."SHELL|
|000022f0| 30 30 31 22 0a 0a 54 65 | 73 74 5f 46 6f 72 5f 53 |001"..Te|st_For_S|
|00002300| 68 65 6c 6c 20 45 4e 44 | 50 0a 0a dc 44 00 00 00 |hell END|P...D...|
|00002310| 00 00 00 dc 0c cb f4 01 | f8 08 cb c0 0c 59 08 46 |........|.....Y.F|
|00002320| c0 43 48 41 50 54 45 52 | 20 34 20 a9 a9 20 53 48 |.CHAPTER| 4 .. SH|
|00002330| 45 4c 4c 20 46 55 4e 43 | 54 49 4f 4e 53 0a c0 08 |ELL FUNC|TIONS...|
|00002340| 46 0c 59 c0 cb f8 08 f4 | 01 cb 0a 0a 41 6c 6c 20 |F.Y.....|....All |
|00002350| 69 6e 74 65 72 61 63 74 | 69 6f 6e 20 77 69 74 68 |interact|ion with|
|00002360| 20 74 68 65 20 53 68 65 | 6c 6c 20 6d 61 6e 61 67 | the She|ll manag|
|00002370| 65 72 20 69 73 20 70 65 | 72 66 6f 72 6d 65 64 20 |er is pe|rformed |
|00002380| 62 79 20 69 73 73 75 69 | 6e 67 20 69 6e 74 65 72 |by issui|ng inter|
|00002390| 72 75 70 74 20 31 41 68 | 2e 20 0d 54 68 65 20 63 |rupt 1Ah|. .The c|
|000023a0| 6f 6e 74 65 6e 74 73 20 | 6f 66 20 74 68 65 20 72 |ontents |of the r|
|000023b0| 65 67 69 73 74 65 72 73 | 20 62 65 66 6f 72 65 20 |egisters| before |
|000023c0| 61 6e 64 20 61 66 74 65 | 72 20 69 73 73 75 69 6e |and afte|r issuin|
|000023d0| 67 20 74 68 65 20 69 6e | 74 65 72 72 75 70 74 20 |g the in|terrupt |
|000023e0| 77 69 6c 6c 20 76 61 72 | 79 0d 64 65 70 65 6e 64 |will var|y.depend|
|000023f0| 69 6e 67 20 6f 6e 20 74 | 68 65 20 53 68 65 6c 6c |ing on t|he Shell|
|00002400| 20 66 75 6e 63 74 69 6f | 6e 20 62 65 69 6e 67 20 | functio|n being |
|00002410| 63 61 6c 6c 65 64 2e 20 | 20 54 68 65 20 66 75 6e |called. | The fun|
|00002420| 63 74 69 6f 6e 20 6e 75 | 6d 62 65 72 20 69 73 20 |ction nu|mber is |
|00002430| 61 6c 77 61 79 73 0d 70 | 61 73 73 65 64 20 69 6e |always.p|assed in|
|00002440| 20 72 65 67 69 73 74 65 | 72 20 41 48 2e 20 20 46 | registe|r AH. F|
|00002450| 6f 72 20 61 6c 6c 20 66 | 75 6e 63 74 69 6f 6e 73 |or all f|unctions|
|00002460| 20 65 78 63 65 70 74 20 | 46 75 6e 63 74 69 6f 6e | except |Function|
|00002470| 20 35 30 68 20 28 47 65 | 74 20 50 72 6f 67 72 61 | 50h (Ge|t Progra|
|00002480| 6d 20 49 44 29 2c 0d 74 | 68 65 20 70 72 6f 67 72 |m ID),.t|he progr|
|00002490| 61 6d 20 49 44 20 63 6f | 64 65 20 69 73 20 70 61 |am ID co|de is pa|
|000024a0| 73 73 65 64 20 69 6e 20 | 72 65 67 69 73 74 65 72 |ssed in |register|
|000024b0| 20 41 4c 2e 0a 0a 46 6f | 72 20 61 6c 6c 20 66 75 | AL...Fo|r all fu|
|000024c0| 6e 63 74 69 6f 6e 73 2c | 20 72 65 67 69 73 74 65 |nctions,| registe|
|000024d0| 72 20 41 48 20 72 65 74 | 75 72 6e 73 20 61 6e 20 |r AH ret|urns an |
|000024e0| 65 72 72 6f 72 20 73 74 | 61 74 75 73 20 63 6f 64 |error st|atus cod|
|000024f0| 65 2e 20 20 54 68 65 20 | 70 6f 73 73 69 62 6c 65 |e. The |possible|
|00002500| 20 65 72 72 6f 72 0d 73 | 74 61 74 75 73 20 63 6f | error.s|tatus co|
|00002510| 64 65 73 20 61 72 65 20 | 6c 69 73 74 65 64 20 66 |des are |listed f|
|00002520| 6f 72 20 65 61 63 68 20 | 66 75 6e 63 74 69 6f 6e |or each |function|
|00002530| 2e 20 20 49 6e 20 67 65 | 6e 65 72 61 6c 2c 20 69 |. In ge|neral, i|
|00002540| 66 20 41 48 20 69 73 20 | 7a 65 72 6f 2c 20 74 68 |f AH is |zero, th|
|00002550| 65 20 66 75 6e 63 74 69 | 6f 6e 0d 65 78 65 63 75 |e functi|on.execu|
|00002560| 74 65 64 20 6e 6f 72 6d | 61 6c 6c 79 2e 20 20 49 |ted norm|ally. I|
|00002570| 66 20 41 48 20 69 73 20 | 6e 6f 6e a9 7a 65 72 6f |f AH is |non.zero|
|00002580| 2c 20 61 6e 20 65 72 72 | 6f 72 20 6f 66 20 73 6f |, an err|or of so|
|00002590| 6d 65 20 6b 69 6e 64 20 | 6f 63 63 75 72 72 65 64 |me kind |occurred|
|000025a0| 2e 20 20 0a 0a 46 6f 72 | 20 61 6c 6c 20 66 75 6e |. ..For| all fun|
|000025b0| 63 74 69 6f 6e 73 2c 20 | 69 66 20 41 48 20 69 73 |ctions, |if AH is|
|000025c0| 20 30 46 46 68 20 6f 6e | 20 72 65 74 75 72 6e 2c | 0FFh on| return,|
|000025d0| 20 61 6e 20 69 6e 76 61 | 6c 69 64 20 46 75 6e 63 | an inva|lid Func|
|000025e0| 74 69 6f 6e 20 63 6f 64 | 65 20 6e 75 6d 62 65 72 |tion cod|e number|
|000025f0| 20 77 61 73 0d 70 61 73 | 73 65 64 20 69 6e 20 41 | was.pas|sed in A|
|00002600| 48 2e 0a 0a 46 6f 72 20 | 65 61 63 68 20 66 75 6e |H...For |each fun|
|00002610| 63 74 69 6f 6e 2c 20 74 | 68 65 20 69 6e 70 75 74 |ction, t|he input|
|00002620| 20 70 61 72 61 6d 65 74 | 65 72 73 2c 20 72 65 73 | paramet|ers, res|
|00002630| 75 6c 74 73 2c 20 70 6f | 73 73 69 62 6c 65 20 65 |ults, po|ssible e|
|00002640| 72 72 6f 72 20 63 6f 64 | 65 73 2c 20 61 6e 64 20 |rror cod|es, and |
|00002650| 61 6e 0d 65 78 61 6d 70 | 6c 65 20 69 6e 20 61 73 |an.examp|le in as|
|00002660| 73 65 6d 62 6c 79 20 6c | 61 6e 67 75 61 67 65 20 |sembly l|anguage |
|00002670| 61 72 65 20 67 69 76 65 | 6e 2e 0a dc 24 00 00 00 |are give|n...$...|
|00002680| 00 00 00 dc 0c cb f4 01 | f8 08 cb c0 0c 59 08 46 |........|.....Y.F|
|00002690| c0 46 75 6e 63 74 69 6f | 6e 20 35 30 68 20 a9 a9 |.Functio|n 50h ..|
|000026a0| 20 47 65 74 20 50 72 6f | 67 72 61 6d 20 49 44 0a | Get Pro|gram ID.|
|000026b0| c0 08 46 0c 59 c0 cb f8 | 08 f4 01 cb 0a 0a 54 68 |..F.Y...|......Th|
|000026c0| 69 73 20 66 75 6e 63 74 | 69 6f 6e 20 69 73 20 75 |is funct|ion is u|
|000026d0| 73 65 64 20 74 6f 20 72 | 65 74 75 72 6e 20 61 20 |sed to r|eturn a |
|000026e0| 75 6e 69 71 75 65 20 70 | 72 6f 67 72 61 6d 20 49 |unique p|rogram I|
|000026f0| 44 20 63 6f 64 65 20 74 | 6f 20 74 68 65 20 63 61 |D code t|o the ca|
|00002700| 6c 6c 65 72 2e 20 20 54 | 68 69 73 0d 73 68 6f 75 |ller. T|his.shou|
|00002710| 6c 64 20 62 65 20 74 68 | 65 20 66 69 72 73 74 20 |ld be th|e first |
|00002720| 66 75 6e 63 74 69 6f 6e | 20 75 73 65 64 20 62 79 |function| used by|
|00002730| 20 74 68 65 20 63 61 6c | 6c 69 6e 67 20 70 72 6f | the cal|ling pro|
|00002740| 67 72 61 6d 2c 20 61 6e | 64 20 73 68 6f 75 6c 64 |gram, an|d should|
|00002750| 20 62 65 20 63 61 6c 6c | 65 64 20 61 73 0d 73 6f | be call|ed as.so|
|00002760| 6f 6e 20 61 73 20 74 68 | 65 20 70 72 6f 67 72 61 |on as th|e progra|
|00002770| 6d 20 64 65 74 65 72 6d | 69 6e 65 73 20 74 68 61 |m determ|ines tha|
|00002780| 74 20 74 68 65 20 53 68 | 65 6c 6c 20 69 73 20 70 |t the Sh|ell is p|
|00002790| 72 65 73 65 6e 74 2e 0a | 0a 46 6f 72 20 61 6c 6c |resent..|.For all|
|000027a0| 20 73 75 62 73 65 71 75 | 65 6e 74 20 66 75 6e 63 | subsequ|ent func|
|000027b0| 74 69 6f 6e 20 63 61 6c | 6c 73 2c 20 74 68 65 20 |tion cal|ls, the |
|000027c0| 70 72 6f 67 72 61 6d 20 | 49 44 20 63 6f 64 65 20 |program |ID code |
|000027d0| 73 68 6f 75 6c 64 20 62 | 65 20 70 61 73 73 65 64 |should b|e passed|
|000027e0| 20 69 6e 0d 72 65 67 69 | 73 74 65 72 20 41 4c 2e | in.regi|ster AL.|
|000027f0| 0a 0a 0a 94 49 4e 95 3a | 09 09 41 48 20 63 6f 6e |....IN.:|..AH con|
|00002800| 74 61 69 6e 73 20 74 68 | 65 20 66 75 6e 63 74 69 |tains th|e functi|
|00002810| 6f 6e 20 6e 75 6d 62 65 | 72 20 28 35 30 68 29 0a |on numbe|r (50h).|
|00002820| 0a 94 4f 55 54 95 3a 09 | 09 41 4c 20 63 6f 6e 74 |..OUT.:.|.AL cont|
|00002830| 61 69 6e 73 20 74 68 65 | 20 50 72 6f 67 72 61 6d |ains the| Program|
|00002840| 20 49 44 20 63 6f 64 65 | 0a 09 09 41 48 20 63 6f | ID code|...AH co|
|00002850| 6e 74 61 69 6e 73 20 61 | 6e 20 65 72 72 6f 72 20 |ntains a|n error |
|00002860| 63 6f 64 65 0a 0a 94 45 | 58 41 4d 50 4c 45 95 3a |code...E|XAMPLE.:|
|00002870| 0a 0a 09 09 4d 4f 56 09 | 41 48 2c 35 30 68 0a 09 |....MOV.|AH,50h..|
|00002880| 09 49 4e 54 09 31 41 68 | 0a 09 09 4f 52 09 41 48 |.INT.1Ah|...OR.AH|
|00002890| 2c 41 48 0a 09 09 4a 4e | 5a 09 65 72 72 6f 72 5f |,AH...JN|Z.error_|
|000028a0| 68 61 6e 64 6c 65 72 0a | 0a 94 45 52 52 4f 52 20 |handler.|..ERROR |
|000028b0| 43 4f 44 45 53 95 3a 0a | 0a 09 09 41 48 20 3d 20 |CODES.:.|...AH = |
|000028c0| 30 09 4e 6f 20 65 72 72 | 6f 72 2e 0a 09 09 41 48 |0.No err|or....AH|
|000028d0| 20 3d 20 31 09 4e 6f 20 | 50 72 6f 67 72 61 6d 20 | = 1.No |Program |
|000028e0| 49 44 20 63 6f 64 65 20 | 61 76 61 69 6c 61 62 6c |ID code |availabl|
|000028f0| 65 2e 0a dc 36 00 00 00 | 00 00 00 dc 0c cb f4 01 |e...6...|........|
|00002900| f8 08 cb c0 0c 59 08 46 | c0 46 75 6e 63 74 69 6f |.....Y.F|.Functio|
|00002910| 6e 20 35 31 68 20 a9 a9 | 20 47 6f 20 74 6f 20 53 |n 51h ..| Go to S|
|00002920| 68 65 6c 6c 0a c0 08 46 | 0c 59 c0 cb f8 08 f4 01 |hell...F|.Y......|
|00002930| cb 0a 0a 54 68 69 73 20 | 66 75 6e 63 74 69 6f 6e |...This |function|
|00002940| 20 69 73 20 75 73 65 64 | 20 74 6f 20 74 65 6d 70 | is used| to temp|
|00002950| 6f 72 61 72 69 6c 79 20 | 73 75 73 70 65 6e 64 20 |orarily |suspend |
|00002960| 74 68 65 20 63 61 6c 6c | 69 6e 67 20 70 72 6f 67 |the call|ing prog|
|00002970| 72 61 6d 20 61 6e 64 20 | 74 72 61 6e 73 66 65 72 |ram and |transfer|
|00002980| 0d 63 6f 6e 74 72 6f 6c | 20 74 6f 20 74 68 65 20 |.control| to the |
|00002990| 53 68 65 6c 6c 20 6d 61 | 6e 61 67 65 72 2e 20 20 |Shell ma|nager. |
|000029a0| 54 68 65 20 53 68 65 6c | 6c 20 6d 65 6e 75 20 77 |The Shel|l menu w|
|000029b0| 69 6c 6c 20 62 65 20 64 | 69 73 70 6c 61 79 65 64 |ill be d|isplayed|
|000029c0| 20 61 6e 64 20 74 68 65 | 20 75 73 65 72 20 69 73 | and the| user is|
|000029d0| 0d 61 6c 6c 6f 77 65 64 | 20 74 6f 20 73 65 6c 65 |.allowed| to sele|
|000029e0| 63 74 20 66 72 6f 6d 20 | 61 6d 6f 6e 67 20 74 68 |ct from |among th|
|000029f0| 65 20 65 6e 74 72 69 65 | 73 20 6f 6e 20 74 68 65 |e entrie|s on the|
|00002a00| 20 6d 65 6e 75 2e 0a 0a | 57 68 65 6e 20 74 68 65 | menu...|When the|
|00002a10| 20 75 73 65 72 20 65 6c | 65 63 74 73 20 74 6f 20 | user el|ects to |
|00002a20| 72 65 74 75 72 6e 20 74 | 6f 20 74 68 65 20 63 61 |return t|o the ca|
|00002a30| 6c 6c 69 6e 67 20 70 72 | 6f 67 72 61 6d 2c 20 74 |lling pr|ogram, t|
|00002a40| 68 65 20 53 68 65 6c 6c | 20 74 72 61 6e 73 66 65 |he Shell| transfe|
|00002a50| 72 73 0d 63 6f 6e 74 72 | 6f 6c 20 62 61 63 6b 20 |rs.contr|ol back |
|00002a60| 74 6f 20 74 68 65 20 63 | 61 6c 6c 65 72 20 62 79 |to the c|aller by|
|00002a70| 20 72 65 74 75 72 6e 69 | 6e 67 20 66 72 6f 6d 20 | returni|ng from |
|00002a80| 74 68 65 20 69 6e 74 65 | 72 72 75 70 74 2e 0a 0a |the inte|rrupt...|
|00002a90| 49 74 20 69 73 20 94 76 | 65 72 79 20 69 6d 70 6f |It is .v|ery impo|
|00002aa0| 72 74 61 6e 74 95 20 74 | 68 61 74 20 74 68 65 20 |rtant. t|hat the |
|00002ab0| 63 61 6c 6c 69 6e 67 20 | 70 72 6f 67 72 61 6d 20 |calling |program |
|00002ac0| 63 68 65 63 6b 20 74 68 | 65 20 65 72 72 6f 72 20 |check th|e error |
|00002ad0| 73 74 61 74 75 73 20 63 | 6f 64 65 20 69 6e 20 41 |status c|ode in A|
|00002ae0| 48 0d 6f 6e 20 72 65 74 | 75 72 6e 20 66 72 6f 6d |H.on ret|urn from|
|00002af0| 20 74 68 69 73 20 69 6e | 74 65 72 72 75 70 74 2e | this in|terrupt.|
|00002b00| 20 20 54 68 65 20 75 73 | 65 72 20 6d 61 79 20 68 | The us|er may h|
|00002b10| 61 76 65 20 65 6c 65 63 | 74 65 64 20 74 6f 20 65 |ave elec|ted to e|
|00002b20| 78 69 74 20 61 6c 6c 20 | 70 72 6f 67 72 61 6d 73 |xit all |programs|
|00002b30| 0d 74 68 61 74 20 61 72 | 65 20 6c 6f 61 64 65 64 |.that ar|e loaded|
|00002b40| 20 75 6e 64 65 72 20 74 | 68 65 20 53 68 65 6c 6c | under t|he Shell|
|00002b50| 2c 20 69 6e 20 77 68 69 | 63 68 20 63 61 73 65 20 |, in whi|ch case |
|00002b60| 74 68 65 20 63 61 6c 6c | 65 72 20 77 69 6c 6c 20 |the call|er will |
|00002b70| 6e 65 65 64 20 74 6f 20 | 22 63 6c 6f 73 65 20 75 |need to |"close u|
|00002b80| 70 0d 73 68 6f 70 22 20 | 61 6e 64 20 74 65 72 6d |p.shop" |and term|
|00002b90| 69 6e 61 74 65 2e 0a 0a | 94 49 4e 95 3a 09 09 41 |inate...|.IN.:..A|
|00002ba0| 48 20 63 6f 6e 74 61 69 | 6e 73 20 74 68 65 20 66 |H contai|ns the f|
|00002bb0| 75 6e 63 74 69 6f 6e 20 | 6e 75 6d 62 65 72 20 28 |unction |number (|
|00002bc0| 35 31 68 29 0a 09 09 41 | 4c 20 63 6f 6e 74 61 69 |51h)...A|L contai|
|00002bd0| 6e 73 20 74 68 65 20 50 | 72 6f 67 72 61 6d 20 49 |ns the P|rogram I|
|00002be0| 44 20 28 72 65 74 75 72 | 6e 65 64 20 62 79 20 46 |D (retur|ned by F|
|00002bf0| 75 6e 63 74 69 6f 6e 20 | 35 30 68 29 0a 0a 94 4f |unction |50h)...O|
|00002c00| 55 54 95 3a 09 09 41 48 | 20 63 6f 6e 74 61 69 6e |UT.:..AH| contain|
|00002c10| 73 20 61 6e 20 65 72 72 | 6f 72 20 63 6f 64 65 0a |s an err|or code.|
|00002c20| 0a 94 45 58 41 4d 50 4c | 45 95 3a 0a 0a 09 09 4d |..EXAMPL|E.:....M|
|00002c30| 4f 56 09 41 48 2c 35 31 | 68 0a 09 09 4d 4f 56 09 |OV.AH,51|h...MOV.|
|00002c40| 41 4c 2c 70 72 6f 67 72 | 61 6d 5f 49 44 0a 09 09 |AL,progr|am_ID...|
|00002c50| 49 4e 54 09 31 41 68 0a | 09 09 4f 52 09 41 48 2c |INT.1Ah.|..OR.AH,|
|00002c60| 41 48 0a 09 09 4a 5a 09 | 63 6f 6e 74 69 6e 75 65 |AH...JZ.|continue|
|00002c70| 5f 77 69 74 68 5f 70 72 | 6f 67 72 61 6d 0a 09 09 |_with_pr|ogram...|
|00002c80| 44 45 43 09 41 48 0a 09 | 09 4a 5a 09 75 6e 61 62 |DEC.AH..|.JZ.unab|
|00002c90| 6c 65 5f 74 6f 5f 74 72 | 61 6e 73 66 65 72 5f 74 |le_to_tr|ansfer_t|
|00002ca0| 6f 5f 73 68 65 6c 6c 0a | 09 09 44 45 43 09 41 48 |o_shell.|..DEC.AH|
|00002cb0| 0a 09 09 4a 5a 09 65 78 | 69 74 5f 70 72 6f 67 72 |...JZ.ex|it_progr|
|00002cc0| 61 6d 0a 09 09 44 45 43 | 09 41 48 0a 09 09 4a 5a |am...DEC|.AH...JZ|
|00002cd0| 09 65 78 69 74 5f 70 72 | 6f 67 72 61 6d 5f 62 75 |.exit_pr|ogram_bu|
|00002ce0| 74 5f 73 61 76 65 5f 69 | 6e 66 6f 5f 66 69 72 73 |t_save_i|nfo_firs|
|00002cf0| 74 0a 0a 94 45 52 52 4f | 52 20 43 4f 44 45 53 95 |t...ERRO|R CODES.|
|00002d00| 3a 0a 0a 09 09 41 48 20 | 3d 20 30 cc 0c 20 cc 4e |:....AH |= 0.. .N|
|00002d10| 6f 20 65 72 72 6f 72 2c | 20 63 6f 6e 74 69 6e 75 |o error,| continu|
|00002d20| 65 20 77 69 74 68 20 70 | 72 6f 67 72 61 6d 2e de |e with p|rogram..|
|00002d30| 20 59 de 0a 09 09 41 48 | 20 3d 20 31 cc 0c 20 cc | Y....AH| = 1.. .|
|00002d40| 55 6e 61 62 6c 65 20 74 | 6f 20 74 72 61 6e 73 66 |Unable t|o transf|
|00002d50| 65 72 20 63 6f 6e 74 72 | 6f 6c 20 74 6f 20 53 68 |er contr|ol to Sh|
|00002d60| 65 6c 6c 20 a9 a9 20 63 | 6f 6e 74 69 6e 75 65 20 |ell .. c|ontinue |
|00002d70| 77 69 74 68 0d 70 72 6f | 67 72 61 6d 20 6f 72 20 |with.pro|gram or |
|00002d80| 69 73 73 75 65 20 65 72 | 72 6f 72 20 6d 65 73 73 |issue er|ror mess|
|00002d90| 61 67 65 2e de 20 59 de | 0a 09 09 41 48 20 3d 20 |age.. Y.|...AH = |
|00002da0| 32 cc 0c 20 cc 55 73 65 | 72 20 77 69 73 68 65 73 |2.. .Use|r wishes|
|00002db0| 20 74 6f 20 65 78 69 74 | 20 61 6c 6c 20 70 72 6f | to exit| all pro|
|00002dc0| 67 72 61 6d 73 20 74 68 | 61 74 20 61 72 65 20 6c |grams th|at are l|
|00002dd0| 6f 61 64 65 64 20 75 6e | 64 65 72 20 74 68 65 0d |oaded un|der the.|
|00002de0| 53 68 65 6c 6c 2e 20 20 | 43 6c 6f 73 65 20 75 70 |Shell. |Close up|
|00002df0| 20 66 69 6c 65 73 2c 20 | 65 74 63 2e 2c 20 61 6e | files, |etc., an|
|00002e00| 64 20 74 65 72 6d 69 6e | 61 74 65 2e de 20 59 de |d termin|ate.. Y.|
|00002e10| 0a cc 0c 11 cc cc 11 16 | cc 41 48 20 3d 20 33 cc |........|.AH = 3.|
|00002e20| 16 20 cc 55 73 65 72 20 | 77 69 73 68 65 73 20 74 |. .User |wishes t|
|00002e30| 6f 20 73 61 76 65 20 61 | 6e 79 20 69 6e 66 6f 72 |o save a|ny infor|
|00002e40| 6d 61 74 69 6f 6e 20 28 | 64 6f 63 75 6d 65 6e 74 |mation (|document|
|00002e50| 73 2c 20 77 6f 72 6b 73 | 68 65 65 74 73 2c 0d 65 |s, works|heets,.e|
|00002e60| 74 63 2e 29 20 74 68 61 | 74 20 68 61 73 20 62 65 |tc.) tha|t has be|
|00002e70| 65 6e 20 6d 6f 64 69 66 | 69 65 64 2c 20 61 6e 64 |en modif|ied, and|
|00002e80| 20 74 68 65 6e 20 65 78 | 69 74 20 61 6c 6c 20 70 | then ex|it all p|
|00002e90| 72 6f 67 72 61 6d 73 20 | 74 68 61 74 0d 61 72 65 |rograms |that.are|
|00002ea0| 20 6c 6f 61 64 65 64 20 | 75 6e 64 65 72 20 74 68 | loaded |under th|
|00002eb0| 65 20 53 68 65 6c 6c 2e | 20 20 53 61 76 65 20 61 |e Shell.| Save a|
|00002ec0| 6e 79 20 75 70 64 61 74 | 65 64 20 69 6e 66 6f 72 |ny updat|ed infor|
|00002ed0| 6d 61 74 69 6f 6e 0d 28 | 74 68 69 73 20 6d 61 79 |mation.(|this may|
|00002ee0| 20 72 65 71 75 69 72 65 | 20 75 73 65 72 20 69 6e | require| user in|
|00002ef0| 74 65 72 61 63 74 69 6f | 6e 29 2c 20 61 6e 64 20 |teractio|n), and |
|00002f00| 74 65 72 6d 69 6e 61 74 | 65 2e de 20 59 de 0a 0a |terminat|e.. Y...|
|00002f10| 4e 6f 74 65 3a 20 57 68 | 65 6e 20 74 68 69 73 20 |Note: Wh|en this |
|00002f20| 66 75 6e 63 74 69 6f 6e | 20 69 73 20 63 61 6c 6c |function| is call|
|00002f30| 65 64 2c 20 74 68 65 20 | 53 68 65 6c 6c 20 73 61 |ed, the |Shell sa|
|00002f40| 76 65 73 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |ves the |followin|
|00002f50| 67 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 0d 61 62 |g inform|ation.ab|
|00002f60| 6f 75 74 20 74 68 65 20 | 63 61 6c 6c 65 72 27 73 |out the |caller's|
|00002f70| 20 22 73 74 61 74 65 22 | 20 6f 6e 20 74 68 65 20 | "state"| on the |
|00002f80| 63 61 6c 6c 65 72 27 73 | 20 73 74 61 63 6b 3a 0a |caller's| stack:.|
|00002f90| 0a 09 09 31 2e 20 41 4c | 4c 20 72 65 67 69 73 74 |...1. AL|L regist|
|00002fa0| 65 72 73 20 65 78 63 65 | 70 74 20 41 58 0a 09 09 |ers exce|pt AX...|
|00002fb0| 32 2e 20 41 6c 6c 20 66 | 6c 61 67 73 0a 09 09 33 |2. All f|lags...3|
|00002fc0| 2e 20 54 68 65 20 63 75 | 72 72 65 6e 74 20 63 75 |. The cu|rrent cu|
|00002fd0| 72 73 6f 72 20 70 6f 73 | 69 74 69 6f 6e 20 61 6e |rsor pos|ition an|
|00002fe0| 64 20 6d 6f 64 65 dc 66 | 00 00 00 00 00 00 dc 8c |d mode.f|........|
|00002ff0| 09 09 34 2e 20 54 68 65 | 20 63 75 72 72 65 6e 74 |..4. The| current|
|00003000| 20 44 4f 53 20 44 54 41 | 20 61 64 64 72 65 73 73 | DOS DTA| address|
|00003010| 0a 09 09 35 2e 20 54 68 | 65 20 66 6f 6c 6c 6f 77 |...5. Th|e follow|
|00003020| 69 6e 67 20 69 6e 74 65 | 72 72 75 70 74 20 76 65 |ing inte|rrupt ve|
|00003030| 63 74 6f 72 73 3a 0a 09 | 09 09 a9 20 44 69 76 69 |ctors:..|... Divi|
|00003040| 64 65 20 6f 76 65 72 66 | 6c 6f 77 0a 09 09 09 a9 |de overf|low.....|
|00003050| 20 43 72 69 74 69 63 61 | 6c 20 65 72 72 6f 72 20 | Critica|l error |
|00003060| 68 61 6e 64 6c 65 72 0a | 0a 54 68 65 20 61 62 6f |handler.|.The abo|
|00003070| 76 65 20 22 73 74 61 74 | 65 22 20 69 73 20 72 65 |ve "stat|e" is re|
|00003080| 73 74 6f 72 65 64 20 62 | 65 66 6f 72 65 20 74 68 |stored b|efore th|
|00003090| 65 20 53 68 65 6c 6c 20 | 72 65 74 75 72 6e 73 20 |e Shell |returns |
|000030a0| 63 6f 6e 74 72 6f 6c 20 | 74 6f 20 74 68 65 20 63 |control |to the c|
|000030b0| 61 6c 6c 65 72 2e 0a 0a | 49 66 20 41 48 20 63 6f |aller...|If AH co|
|000030c0| 6e 74 61 69 6e 73 20 61 | 20 32 20 6f 72 20 33 20 |ntains a| 2 or 3 |
|000030d0| 28 74 65 72 6d 69 6e 61 | 74 65 29 20 63 6f 64 65 |(termina|te) code|
|000030e0| 20 6f 6e 20 72 65 74 75 | 72 6e 20 66 72 6f 6d 20 | on retu|rn from |
|000030f0| 74 68 69 73 20 66 75 6e | 63 74 69 6f 6e 2c 20 74 |this fun|ction, t|
|00003100| 68 65 0d 63 61 6c 6c 69 | 6e 67 20 70 72 6f 67 72 |he.calli|ng progr|
|00003110| 61 6d 20 73 68 6f 75 6c | 64 20 73 74 69 6c 6c 20 |am shoul|d still |
|00003120| 69 73 73 75 65 20 46 75 | 6e 63 74 69 6f 6e 20 35 |issue Fu|nction 5|
|00003130| 35 68 20 28 52 65 71 75 | 65 73 74 20 70 65 72 6d |5h (Requ|est perm|
|00003140| 69 73 73 69 6f 6e 20 74 | 6f 20 65 78 69 74 29 0d |ission t|o exit).|
|00003150| 62 65 66 6f 72 65 20 61 | 63 74 75 61 6c 6c 79 20 |before a|ctually |
|00003160| 74 65 72 6d 69 6e 61 74 | 69 6e 67 2e 0a dc 14 00 |terminat|ing.....|
|00003170| 00 00 00 00 00 dc 0c cb | f4 01 f8 08 cb c0 0c 59 |........|.......Y|
|00003180| 08 46 c0 46 75 6e 63 74 | 69 6f 6e 20 35 32 68 20 |.F.Funct|ion 52h |
|00003190| a9 a9 20 57 72 69 74 65 | 20 44 61 74 61 20 74 6f |.. Write| Data to|
|000031a0| 20 43 6c 69 70 62 6f 61 | 72 64 0a c0 08 46 0c 59 | Clipboa|rd...F.Y|
|000031b0| c0 cb f8 08 f4 01 cb 0a | 0a 55 73 65 20 74 68 69 |........|.Use thi|
|000031c0| 73 20 66 75 6e 63 74 69 | 6f 6e 20 74 6f 20 77 72 |s functi|on to wr|
|000031d0| 69 74 65 20 74 68 65 20 | 64 61 74 61 20 73 70 65 |ite the |data spe|
|000031e0| 63 69 66 69 65 64 20 62 | 79 20 44 53 3a 53 49 20 |cified b|y DS:SI |
|000031f0| 61 6e 64 20 43 58 20 72 | 65 67 69 73 74 65 72 73 |and CX r|egisters|
|00003200| 20 74 6f 20 74 68 65 0d | 63 6c 69 70 62 6f 61 72 | to the.|clipboar|
|00003210| 64 2e 20 20 41 6e 79 20 | 70 72 65 76 69 6f 75 73 |d. Any |previous|
|00003220| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 63 6f 6e | informa|tion con|
|00003230| 74 61 69 6e 65 64 20 69 | 6e 20 74 68 65 20 63 6c |tained i|n the cl|
|00003240| 69 70 62 6f 61 72 64 20 | 69 73 20 6c 6f 73 74 2e |ipboard |is lost.|
|00003250| 20 20 55 73 65 0d 46 75 | 6e 63 74 69 6f 6e 20 35 | Use.Fu|nction 5|
|00003260| 33 68 20 74 6f 20 61 70 | 70 65 6e 64 20 6f 72 20 |3h to ap|pend or |
|00003270| 61 64 64 20 64 61 74 61 | 20 74 6f 20 74 68 65 20 |add data| to the |
|00003280| 63 6c 69 70 62 6f 61 72 | 64 2e 0a 0a 54 68 65 20 |clipboar|d...The |
|00003290| 63 6c 69 70 62 6f 61 72 | 64 20 69 73 20 76 69 72 |clipboar|d is vir|
|000032a0| 74 75 61 6c 20 69 6e 20 | 6e 61 74 75 72 65 2c 20 |tual in |nature, |
|000032b0| 73 6f 20 69 66 20 74 68 | 65 20 64 61 74 61 20 69 |so if th|e data i|
|000032c0| 73 20 74 6f 6f 20 6c 61 | 72 67 65 20 66 6f 72 20 |s too la|rge for |
|000032d0| 74 68 65 20 35 4b 20 6d | 65 6d 6f 72 79 0d 62 75 |the 5K m|emory.bu|
|000032e0| 66 66 65 72 20 72 65 73 | 65 72 76 65 64 20 66 6f |ffer res|erved fo|
|000032f0| 72 20 74 68 65 20 63 6c | 69 70 62 6f 61 72 64 2c |r the cl|ipboard,|
|00003300| 20 61 20 74 65 6d 70 6f | 72 61 72 79 20 66 69 6c | a tempo|rary fil|
|00003310| 65 20 77 69 6c 6c 20 61 | 75 74 6f 6d 61 74 69 63 |e will a|utomatic|
|00003320| 61 6c 6c 79 20 62 65 20 | 63 72 65 61 74 65 64 0d |ally be |created.|
|00003330| 6f 6e 20 64 69 73 6b 2c | 20 61 6e 64 20 74 68 65 |on disk,| and the|
|00003340| 20 61 64 64 69 74 69 6f | 6e 61 6c 20 69 6e 66 6f | additio|nal info|
|00003350| 72 6d 61 74 69 6f 6e 20 | 77 69 6c 6c 20 62 65 20 |rmation |will be |
|00003360| 73 74 6f 72 65 64 20 74 | 68 65 72 65 2e 0a 0a 0a |stored t|here....|
|00003370| 94 49 4e 95 3a 09 09 41 | 48 20 63 6f 6e 74 61 69 |.IN.:..A|H contai|
|00003380| 6e 73 20 74 68 65 20 66 | 75 6e 63 74 69 6f 6e 20 |ns the f|unction |
|00003390| 6e 75 6d 62 65 72 20 28 | 35 32 68 29 0a 09 09 41 |number (|52h)...A|
|000033a0| 4c 20 63 6f 6e 74 61 69 | 6e 73 20 74 68 65 20 50 |L contai|ns the P|
|000033b0| 72 6f 67 72 61 6d 20 49 | 44 20 63 6f 64 65 0a 09 |rogram I|D code..|
|000033c0| 09 42 4c 20 63 6f 6e 74 | 61 69 6e 73 20 61 20 66 |.BL cont|ains a f|
|000033d0| 6f 72 6d 61 74 20 74 79 | 70 65 20 63 6f 64 65 20 |ormat ty|pe code |
|000033e0| 61 73 20 66 6f 6c 6c 6f | 77 73 3a 0a 09 09 09 31 |as follo|ws:....1|
|000033f0| 20 3d 20 64 61 74 61 20 | 69 73 20 69 6e 20 57 50 | = data |is in WP|
|00003400| 20 74 65 78 74 20 66 6f | 72 6d 61 74 0a 09 09 09 | text fo|rmat....|
|00003410| 32 20 3d 20 64 61 74 61 | 20 69 73 20 69 6e 20 57 |2 = data| is in W|
|00003420| 50 20 4d 65 72 67 65 20 | 46 69 6c 65 20 66 6f 72 |P Merge |File for|
|00003430| 6d 61 74 0a 09 09 09 33 | 20 3d 20 64 61 74 61 20 |mat....3| = data |
|00003440| 69 73 20 69 6e 20 41 53 | 43 49 49 20 74 65 78 74 |is in AS|CII text|
|00003450| 20 66 6f 72 6d 61 74 0a | 09 09 09 28 73 65 65 20 | format.|...(see |
|00003460| 41 70 70 65 6e 64 69 78 | 20 66 6f 72 20 65 78 70 |Appendix| for exp|
|00003470| 6c 61 6e 61 74 69 6f 6e | 20 6f 66 20 66 6f 72 6d |lanation| of form|
|00003480| 61 74 20 63 6f 64 65 73 | 29 0a 0a 09 09 43 58 20 |at codes|)....CX |
|00003490| 63 6f 6e 74 61 69 6e 73 | 20 74 68 65 20 6e 75 6d |contains| the num|
|000034a0| 62 65 72 20 6f 66 20 62 | 79 74 65 73 20 74 6f 20 |ber of b|ytes to |
|000034b0| 77 72 69 74 65 0a cc 0c | 11 cc cc 11 16 cc cc 16 |write...|........|
|000034c0| 1b cc 4e 6f 74 65 3a 20 | 43 61 6c 6c 69 6e 67 20 |..Note: |Calling |
|000034d0| 70 72 6f 67 72 61 6d 73 | 20 73 68 6f 75 6c 64 20 |programs| should |
|000034e0| 77 72 69 74 65 20 6f 72 | 20 61 70 70 65 6e 64 20 |write or| append |
|000034f0| 6e 6f 20 6d 6f 72 65 20 | 74 68 61 6e 20 35 4b 0d |no more |than 5K.|
|00003500| 62 79 74 65 73 20 61 74 | 20 61 20 74 69 6d 65 20 |bytes at| a time |
|00003510| 74 6f 20 74 68 65 20 63 | 6c 69 70 62 6f 61 72 64 |to the c|lipboard|
|00003520| 2e 20 20 54 68 65 20 61 | 6d 6f 75 6e 74 20 6f 66 |. The a|mount of|
|00003530| 20 64 61 74 61 20 74 68 | 61 74 20 63 61 6e 0d 62 | data th|at can.b|
|00003540| 65 20 73 74 6f 72 65 64 | 20 69 6e 20 74 68 65 20 |e stored| in the |
|00003550| 63 6c 69 70 62 6f 61 72 | 64 20 69 73 20 6c 69 6d |clipboar|d is lim|
|00003560| 69 74 65 64 20 6f 6e 6c | 79 20 62 79 20 64 69 73 |ited onl|y by dis|
|00003570| 6b 20 73 70 61 63 65 2c | 20 62 75 74 20 74 68 65 |k space,| but the|
|00003580| 0d 6d 61 78 69 6d 75 6d | 20 22 63 68 75 6e 6b 22 |.maximum| "chunk"|
|00003590| 20 74 68 61 74 20 74 68 | 65 20 53 68 65 6c 6c 20 | that th|e Shell |
|000035a0| 63 61 6e 20 68 61 6e 64 | 6c 65 20 70 65 72 20 63 |can hand|le per c|
|000035b0| 61 6c 6c 20 69 73 20 35 | 4b 20 62 79 74 65 73 2e |all is 5|K bytes.|
|000035c0| de 1b 59 de 0a 09 cc 0c | 16 cc 44 53 3a 53 49 20 |..Y.....|..DS:SI |
|000035d0| 63 6f 6e 74 61 69 6e 73 | 20 74 68 65 20 73 65 67 |contains| the seg|
|000035e0| 6d 65 6e 74 20 61 6e 64 | 20 6f 66 66 73 65 74 20 |ment and| offset |
|000035f0| 6f 66 20 74 68 65 20 6c | 6f 63 61 74 69 6f 6e 20 |of the l|ocation |
|00003600| 69 6e 20 6d 65 6d 6f 72 | 79 0d 77 68 65 72 65 20 |in memor|y.where |
|00003610| 74 68 65 20 64 61 74 61 | 20 74 6f 20 62 65 20 77 |the data| to be w|
|00003620| 72 69 74 74 65 6e 20 69 | 73 20 73 74 6f 72 65 64 |ritten i|s stored|
|00003630| 2e de 16 59 de 0a 0a 94 | 4f 55 54 95 3a 09 09 41 |...Y....|OUT.:..A|
|00003640| 48 20 63 6f 6e 74 61 69 | 6e 73 20 61 6e 20 65 72 |H contai|ns an er|
|00003650| 72 6f 72 20 63 6f 64 65 | 0a 0a 94 45 58 41 4d 50 |ror code|...EXAMP|
|00003660| 4c 45 95 3a 0a 0a 09 09 | 4d 4f 56 09 41 48 2c 35 |LE.:....|MOV.AH,5|
|00003670| 32 68 0a 09 09 4d 4f 56 | 09 41 4c 2c 70 72 6f 67 |2h...MOV|.AL,prog|
|00003680| 72 61 6d 5f 49 44 0a 09 | 09 4d 4f 56 09 42 4c 2c |ram_ID..|.MOV.BL,|
|00003690| 66 6f 72 6d 61 74 5f 74 | 79 70 65 0a 09 09 4d 4f |format_t|ype...MO|
|000036a0| 56 09 43 58 2c 6e 75 6d | 62 65 72 5f 6f 66 5f 62 |V.CX,num|ber_of_b|
|000036b0| 79 74 65 73 0a 09 09 4d | 4f 56 09 53 49 2c 6f 66 |ytes...M|OV.SI,of|
|000036c0| 66 73 65 74 5f 6f 66 5f | 64 61 74 61 09 09 3b 20 |fset_of_|data..; |
|000036d0| 44 53 20 69 73 20 73 65 | 67 6d 65 6e 74 20 6f 66 |DS is se|gment of|
|000036e0| 20 64 61 74 61 0a 09 09 | 49 4e 54 09 31 41 68 0a | data...|INT.1Ah.|
|000036f0| 09 09 4f 52 09 41 48 2c | 41 48 0a 09 09 4a 4e 5a |..OR.AH,|AH...JNZ|
|00003700| 09 65 72 72 6f 72 5f 68 | 61 6e 64 6c 65 72 0a 0a |.error_h|andler..|
|00003710| 94 45 52 52 4f 52 20 43 | 4f 44 45 53 95 3a 0a 0a |.ERROR C|ODES.:..|
|00003720| 09 09 41 48 20 3d 20 30 | 09 4e 6f 20 65 72 72 6f |..AH = 0|.No erro|
|00003730| 72 2e 0a 09 09 41 48 20 | 3d 20 31 cc 0c 20 cc 4e |r....AH |= 1.. .N|
|00003740| 6f 20 72 6f 6f 6d 20 74 | 6f 20 61 64 64 20 64 61 |o room t|o add da|
|00003750| 74 61 20 74 6f 20 63 6c | 69 70 62 6f 61 72 64 20 |ta to cl|ipboard |
|00003760| 28 44 69 73 6b 20 46 75 | 6c 6c 20 65 72 72 6f 72 |(Disk Fu|ll error|
|00003770| 29 2e de 20 59 de 0a 09 | 09 41 48 20 3d 20 32 09 |).. Y...|.AH = 2.|
|00003780| 49 6e 76 61 6c 69 64 20 | 66 6f 72 6d 61 74 20 74 |Invalid |format t|
|00003790| 79 70 65 2e 0a dc 5c 00 | 00 00 00 00 00 dc 0c cb |ype...\.|........|
|000037a0| f4 01 f8 08 cb c0 0c 59 | 08 46 c0 46 75 6e 63 74 |.......Y|.F.Funct|
|000037b0| 69 6f 6e 20 35 33 68 20 | a9 a9 20 41 70 70 65 6e |ion 53h |.. Appen|
|000037c0| 64 20 44 61 74 61 20 74 | 6f 20 43 6c 69 70 62 6f |d Data t|o Clipbo|
|000037d0| 61 72 64 0a c0 08 46 0c | 59 c0 cb f8 08 f4 01 cb |ard...F.|Y.......|
|000037e0| 0a 0a 54 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 20 |..This f|unction |
|000037f0| 69 73 20 73 69 6d 69 6c | 61 72 20 74 6f 20 46 75 |is simil|ar to Fu|
|00003800| 6e 63 74 69 6f 6e 20 35 | 32 68 2c 20 62 75 74 20 |nction 5|2h, but |
|00003810| 61 70 70 65 6e 64 73 20 | 74 68 65 20 64 61 74 61 |appends |the data|
|00003820| 20 74 6f 20 74 68 65 20 | 65 6e 64 20 6f 66 20 74 | to the |end of t|
|00003830| 68 65 0d 63 6c 69 70 62 | 6f 61 72 64 2e 0a 0a 94 |he.clipb|oard....|
|00003840| 49 4e 95 3a 09 09 41 48 | 20 63 6f 6e 74 61 69 6e |IN.:..AH| contain|
|00003850| 73 20 74 68 65 20 66 75 | 6e 63 74 69 6f 6e 20 6e |s the fu|nction n|
|00003860| 75 6d 62 65 72 20 28 35 | 33 68 29 0a 09 09 41 4c |umber (5|3h)...AL|
|00003870| 20 63 6f 6e 74 61 69 6e | 73 20 74 68 65 20 50 72 | contain|s the Pr|
|00003880| 6f 67 72 61 6d 20 49 44 | 20 63 6f 64 65 0a 09 09 |ogram ID| code...|
|00003890| 42 4c 20 63 6f 6e 74 61 | 69 6e 73 20 61 20 66 6f |BL conta|ins a fo|
|000038a0| 72 6d 61 74 20 74 79 70 | 65 20 63 6f 64 65 20 61 |rmat typ|e code a|
|000038b0| 73 20 66 6f 6c 6c 6f 77 | 73 3a 0a 09 09 09 31 20 |s follow|s:....1 |
|000038c0| 3d 20 64 61 74 61 20 69 | 73 20 69 6e 20 57 50 20 |= data i|s in WP |
|000038d0| 74 65 78 74 20 66 6f 72 | 6d 61 74 0a 09 09 09 32 |text for|mat....2|
|000038e0| 20 3d 20 64 61 74 61 20 | 69 73 20 69 6e 20 57 50 | = data |is in WP|
|000038f0| 20 4d 65 72 67 65 20 46 | 69 6c 65 20 66 6f 72 6d | Merge F|ile form|
|00003900| 61 74 0a 09 09 09 33 20 | 3d 20 64 61 74 61 20 69 |at....3 |= data i|
|00003910| 73 20 69 6e 20 41 53 43 | 49 49 20 74 65 78 74 20 |s in ASC|II text |
|00003920| 66 6f 72 6d 61 74 0a 09 | 09 09 28 73 65 65 20 41 |format..|..(see A|
|00003930| 70 70 65 6e 64 69 78 20 | 66 6f 72 20 65 78 70 6c |ppendix |for expl|
|00003940| 61 6e 61 74 69 6f 6e 20 | 6f 66 20 66 6f 72 6d 61 |anation |of forma|
|00003950| 74 20 63 6f 64 65 73 29 | 0a 0a 09 09 43 58 20 63 |t codes)|....CX c|
|00003960| 6f 6e 74 61 69 6e 73 20 | 74 68 65 20 6e 75 6d 62 |ontains |the numb|
|00003970| 65 72 20 6f 66 20 62 79 | 74 65 73 20 74 6f 20 77 |er of by|tes to w|
|00003980| 72 69 74 65 0a cc 0c 11 | cc cc 11 16 cc cc 16 1b |rite....|........|
|00003990| cc 4e 6f 20 6d 6f 72 65 | 20 74 68 61 6e 20 35 4b |.No more| than 5K|
|000039a0| 20 62 79 74 65 73 20 61 | 74 20 61 20 74 69 6d 65 | bytes a|t a time|
|000039b0| 20 28 73 65 65 20 6e 6f | 74 65 20 75 6e 64 65 72 | (see no|te under|
|000039c0| 20 46 75 6e 63 74 69 6f | 6e 20 35 32 68 20 aa a9 | Functio|n 52h ..|
|000039d0| 20 57 72 69 74 65 20 74 | 6f 20 43 6c 69 70 62 6f | Write t|o Clipbo|
|000039e0| 61 72 64 29 de 1b 59 de | 0a 09 cc 0c 16 cc 44 53 |ard)..Y.|......DS|
|000039f0| 3a 53 49 20 63 6f 6e 74 | 61 69 6e 73 20 74 68 65 |:SI cont|ains the|
|00003a00| 20 73 65 67 6d 65 6e 74 | 20 61 6e 64 20 6f 66 66 | segment| and off|
|00003a10| 73 65 74 20 6f 66 20 74 | 68 65 20 6c 6f 63 61 74 |set of t|he locat|
|00003a20| 69 6f 6e 20 69 6e 20 6d | 65 6d 6f 72 79 0d 77 68 |ion in m|emory.wh|
|00003a30| 65 72 65 20 74 68 65 20 | 64 61 74 61 20 74 6f 20 |ere the |data to |
|00003a40| 62 65 20 61 70 70 65 6e | 64 65 64 20 69 73 20 73 |be appen|ded is s|
|00003a50| 74 6f 72 65 64 2e de 16 | 59 de 0a 0a 94 4f 55 54 |tored...|Y....OUT|
|00003a60| 95 3a 09 09 41 48 20 63 | 6f 6e 74 61 69 6e 73 20 |.:..AH c|ontains |
|00003a70| 61 6e 20 65 72 72 6f 72 | 20 63 6f 64 65 0a 0a 94 |an error| code...|
|00003a80| 45 58 41 4d 50 4c 45 95 | 3a 0a 0a 09 09 4d 4f 56 |EXAMPLE.|:....MOV|
|00003a90| 09 41 48 2c 35 33 68 0a | 09 09 4d 4f 56 09 41 4c |.AH,53h.|..MOV.AL|
|00003aa0| 2c 70 72 6f 67 72 61 6d | 5f 49 44 0a 09 09 4d 4f |,program|_ID...MO|
|00003ab0| 56 09 42 4c 2c 66 6f 72 | 6d 61 74 5f 74 79 70 65 |V.BL,for|mat_type|
|00003ac0| 0a 09 09 4d 4f 56 09 43 | 58 2c 6e 75 6d 62 65 72 |...MOV.C|X,number|
|00003ad0| 5f 6f 66 5f 62 79 74 65 | 73 0a 09 09 4d 4f 56 09 |_of_byte|s...MOV.|
|00003ae0| 53 49 2c 6f 66 66 73 65 | 74 5f 6f 66 5f 64 61 74 |SI,offse|t_of_dat|
|00003af0| 61 09 09 3b 20 44 53 20 | 69 73 20 73 65 67 6d 65 |a..; DS |is segme|
|00003b00| 6e 74 20 6f 66 20 64 61 | 74 61 0a 09 09 49 4e 54 |nt of da|ta...INT|
|00003b10| 09 31 41 68 0a 09 09 4f | 52 09 41 48 2c 41 48 0a |.1Ah...O|R.AH,AH.|
|00003b20| 09 09 4a 4e 5a 09 65 72 | 72 6f 72 5f 68 61 6e 64 |..JNZ.er|ror_hand|
|00003b30| 6c 65 72 0a 0a 94 45 52 | 52 4f 52 20 43 4f 44 45 |ler...ER|ROR CODE|
|00003b40| 53 95 3a 0a 0a 09 09 41 | 48 20 3d 20 30 09 4e 6f |S.:....A|H = 0.No|
|00003b50| 20 65 72 72 6f 72 2e 0a | 09 09 41 48 20 3d 20 31 | error..|..AH = 1|
|00003b60| cc 0c 20 cc 4e 6f 20 72 | 6f 6f 6d 20 74 6f 20 61 |.. .No r|oom to a|
|00003b70| 64 64 20 64 61 74 61 20 | 74 6f 20 63 6c 69 70 62 |dd data |to clipb|
|00003b80| 6f 61 72 64 20 28 44 69 | 73 6b 20 46 75 6c 6c 20 |oard (Di|sk Full |
|00003b90| 65 72 72 6f 72 29 2e de | 20 59 de 0a 09 09 41 48 |error)..| Y....AH|
|00003ba0| 20 3d 20 32 09 49 6e 76 | 61 6c 69 64 20 66 6f 72 | = 2.Inv|alid for|
|00003bb0| 6d 61 74 20 74 79 70 65 | 2e 0a dc 4c 00 00 00 00 |mat type|...L....|
|00003bc0| 00 00 dc 0c cb f4 01 f8 | 08 cb c0 0c 59 08 46 c0 |........|....Y.F.|
|00003bd0| 46 75 6e 63 74 69 6f 6e | 20 35 34 68 20 a9 a9 20 |Function| 54h .. |
|00003be0| 52 65 74 72 69 65 76 65 | 20 44 61 74 61 20 66 72 |Retrieve| Data fr|
|00003bf0| 6f 6d 20 43 6c 69 70 62 | 6f 61 72 64 0a c0 08 46 |om Clipb|oard...F|
|00003c00| 0c 59 c0 cb f8 08 f4 01 | cb 0a 0a 55 73 65 20 74 |.Y......|...Use t|
|00003c10| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 74 6f 20 |his func|tion to |
|00003c20| 72 65 74 72 69 65 76 65 | 20 64 61 74 61 20 66 72 |retrieve| data fr|
|00003c30| 6f 6d 20 74 68 65 20 63 | 6c 69 70 62 6f 61 72 64 |om the c|lipboard|
|00003c40| 2e 20 20 54 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |. The n|umber of|
|00003c50| 20 62 79 74 65 73 20 69 | 73 0d 72 65 74 75 72 6e | bytes i|s.return|
|00003c60| 65 64 20 69 6e 20 43 58 | 2e 20 20 54 68 65 20 63 |ed in CX|. The c|
|00003c70| 61 6c 6c 69 6e 67 20 70 | 72 6f 67 72 61 6d 20 73 |alling p|rogram s|
|00003c80| 68 6f 75 6c 64 20 63 6f | 6e 74 69 6e 75 65 20 6d |hould co|ntinue m|
|00003c90| 61 6b 69 6e 67 20 74 68 | 69 73 20 66 75 6e 63 74 |aking th|is funct|
|00003ca0| 69 6f 6e 20 63 61 6c 6c | 0d 75 6e 74 69 6c 20 43 |ion call|.until C|
|00003cb0| 58 20 65 71 75 61 6c 73 | 20 30 2c 20 6d 65 61 6e |X equals| 0, mean|
|00003cc0| 69 6e 67 20 74 68 65 72 | 65 20 69 73 20 6e 6f 20 |ing ther|e is no |
|00003cd0| 6d 6f 72 65 20 64 61 74 | 61 20 74 6f 20 62 65 20 |more dat|a to be |
|00003ce0| 72 65 74 72 69 65 76 65 | 64 20 66 72 6f 6d 20 74 |retrieve|d from t|
|00003cf0| 68 65 0d 63 6c 69 70 62 | 6f 61 72 64 2e 20 20 49 |he.clipb|oard. I|
|00003d00| 66 20 43 58 20 69 73 20 | 7a 65 72 6f 20 6f 6e 20 |f CX is |zero on |
|00003d10| 74 68 65 20 66 69 72 73 | 74 20 63 61 6c 6c 2c 20 |the firs|t call, |
|00003d20| 74 68 65 20 63 6c 69 70 | 62 6f 61 72 64 20 69 73 |the clip|board is|
|00003d30| 20 65 6d 70 74 79 2e 0a | 0a 46 75 6e 63 74 69 6f | empty..|.Functio|
|00003d40| 6e 20 35 36 68 20 63 61 | 6e 20 62 65 20 75 73 65 |n 56h ca|n be use|
|00003d50| 64 20 74 6f 20 64 65 74 | 65 72 6d 69 6e 65 20 77 |d to det|ermine w|
|00003d60| 68 65 74 68 65 72 20 74 | 68 65 20 64 61 74 61 20 |hether t|he data |
|00003d70| 69 6e 20 74 68 65 20 63 | 6c 69 70 62 6f 61 72 64 |in the c|lipboard|
|00003d80| 20 69 73 20 69 6e 20 61 | 0d 74 65 78 74 20 66 6f | is in a|.text fo|
|00003d90| 72 6d 61 74 20 28 57 50 | 20 6f 72 20 41 53 43 49 |rmat (WP| or ASCI|
|00003da0| 49 29 20 6f 72 20 69 6e | 20 61 20 6d 61 69 6c a9 |I) or in| a mail.|
|00003db0| 6d 65 72 67 65 20 66 6f | 72 6d 61 74 20 28 57 50 |merge fo|rmat (WP|
|00003dc0| 20 4d 65 72 67 65 20 46 | 69 6c 65 29 2e 0a 0a 94 | Merge F|ile)....|
|00003dd0| 49 4e 95 3a 09 09 41 48 | 20 63 6f 6e 74 61 69 6e |IN.:..AH| contain|
|00003de0| 73 20 74 68 65 20 66 75 | 6e 63 74 69 6f 6e 20 6e |s the fu|nction n|
|00003df0| 75 6d 62 65 72 20 28 35 | 34 68 29 2e 0a 09 09 41 |umber (5|4h)....A|
|00003e00| 4c 20 63 6f 6e 74 61 69 | 6e 73 20 74 68 65 20 50 |L contai|ns the P|
|00003e10| 72 6f 67 72 61 6d 20 49 | 44 20 63 6f 64 65 2e 0a |rogram I|D code..|
|00003e20| 09 09 42 4c 20 63 6f 6e | 74 61 69 6e 73 20 61 20 |..BL con|tains a |
|00003e30| 66 6f 72 6d 61 74 20 74 | 79 70 65 20 63 6f 64 65 |format t|ype code|
|00003e40| 20 61 73 20 66 6f 6c 6c | 6f 77 73 3a 0a 09 09 09 | as foll|ows:....|
|00003e50| 31 20 3d 20 72 65 71 75 | 65 73 74 20 64 61 74 61 |1 = requ|est data|
|00003e60| 20 69 6e 20 57 50 20 74 | 65 78 74 20 66 6f 72 6d | in WP t|ext form|
|00003e70| 61 74 0a 09 09 09 32 20 | 3d 20 72 65 71 75 65 73 |at....2 |= reques|
|00003e80| 74 20 64 61 74 61 20 69 | 6e 20 57 50 20 4d 65 72 |t data i|n WP Mer|
|00003e90| 67 65 20 46 69 6c 65 20 | 66 6f 72 6d 61 74 0a 09 |ge File |format..|
|00003ea0| 09 09 33 20 3d 20 72 65 | 71 75 65 73 74 20 64 61 |..3 = re|quest da|
|00003eb0| 74 61 20 69 6e 20 41 53 | 43 49 49 20 74 65 78 74 |ta in AS|CII text|
|00003ec0| 20 66 6f 72 6d 61 74 0a | 09 09 09 28 73 65 65 20 | format.|...(see |
|00003ed0| 41 70 70 65 6e 64 69 78 | 20 66 6f 72 20 65 78 70 |Appendix| for exp|
|00003ee0| 6c 61 6e 61 74 69 6f 6e | 20 6f 66 20 66 6f 72 6d |lanation| of form|
|00003ef0| 61 74 20 63 6f 64 65 73 | 29 0a 0a 94 4f 55 54 95 |at codes|)...OUT.|
|00003f00| 3a 09 09 41 48 20 63 6f | 6e 74 61 69 6e 73 20 61 |:..AH co|ntains a|
|00003f10| 6e 20 65 72 72 6f 72 20 | 63 6f 64 65 0a 09 09 43 |n error |code...C|
|00003f20| 58 20 63 6f 6e 74 61 69 | 6e 73 20 6e 75 6d 62 65 |X contai|ns numbe|
|00003f30| 72 20 62 79 74 65 73 20 | 6f 66 20 64 61 74 61 20 |r bytes |of data |
|00003f40| 72 65 74 75 72 6e 65 64 | 20 28 30 20 3d 20 65 6d |returned| (0 = em|
|00003f50| 70 74 79 29 0a cc 0c 11 | cc cc 11 16 cc cc 16 1b |pty)....|........|
|00003f60| cc 4e 6f 74 65 3a 20 54 | 68 65 20 53 68 65 6c 6c |.Note: T|he Shell|
|00003f70| 20 77 69 6c 6c 20 68 61 | 6e 64 20 62 61 63 6b 20 | will ha|nd back |
|00003f80| 61 70 70 72 6f 78 69 6d | 61 74 65 6c 79 20 31 32 |approxim|ately 12|
|00003f90| 38 20 62 79 74 65 73 20 | 61 74 20 61 20 74 69 6d |8 bytes |at a tim|
|00003fa0| 65 2e 20 0d 54 68 65 20 | 70 72 6f 67 72 61 6d 20 |e. .The |program |
|00003fb0| 73 68 6f 75 6c 64 20 63 | 6f 6e 74 69 6e 75 65 20 |should c|ontinue |
|00003fc0| 63 61 6c 6c 69 6e 67 20 | 46 75 6e 63 74 69 6f 6e |calling |Function|
|00003fd0| 20 35 34 68 20 75 6e 74 | 69 6c 20 43 58 20 3d 20 | 54h unt|il CX = |
|00003fe0| 30 2e de 1b 59 de 0a cc | 0c 11 cc cc 11 16 cc 45 |0...Y...|.......E|
|00003ff0| 53 3a 44 49 20 63 6f 6e | 74 61 69 6e 73 20 74 68 |S:DI con|tains th|
|00004000| 65 20 73 65 67 6d 65 6e | 74 20 61 6e 64 20 6f 66 |e segmen|t and of|
|00004010| 66 73 65 74 20 6f 66 20 | 74 68 65 20 62 75 66 66 |fset of |the buff|
|00004020| 65 72 20 77 68 65 72 65 | 20 74 68 65 20 64 61 74 |er where| the dat|
|00004030| 61 20 69 73 0d 6c 6f 63 | 61 74 65 64 2e de 16 59 |a is.loc|ated...Y|
|00004040| de 0a 0a 94 45 58 41 4d | 50 4c 45 95 3a 0a 0a 52 |....EXAM|PLE.:..R|
|00004050| 65 61 64 5f 63 6c 69 70 | 62 6f 61 72 64 3a 0a 09 |ead_clip|board:..|
|00004060| 09 4d 4f 56 09 41 48 2c | 35 34 68 0a 09 09 4d 4f |.MOV.AH,|54h...MO|
|00004070| 56 09 41 4c 2c 70 72 6f | 67 72 61 6d 5f 49 44 0a |V.AL,pro|gram_ID.|
|00004080| 09 09 4d 4f 56 09 42 4c | 2c 66 6f 72 6d 61 74 5f |..MOV.BL|,format_|
|00004090| 74 79 70 65 0a 09 09 49 | 4e 54 09 31 41 68 0a 09 |type...I|NT.1Ah..|
|000040a0| 09 4f 52 09 41 48 2c 41 | 48 0a 09 09 4a 4e 5a 09 |.OR.AH,A|H...JNZ.|
|000040b0| 65 72 72 6f 72 5f 68 61 | 6e 64 6c 65 72 0a 09 09 |error_ha|ndler...|
|000040c0| 4a 43 58 5a 09 6e 6f 5f | 6d 6f 72 65 5f 64 61 74 |JCXZ.no_|more_dat|
|000040d0| 61 0a 0a 09 09 3b 20 50 | 52 4f 43 45 53 53 20 43 |a....; P|ROCESS C|
|000040e0| 58 20 42 59 54 45 53 20 | 41 54 20 45 53 3a 44 49 |X BYTES |AT ES:DI|
|000040f0| 0a 0a 09 09 4a 4d 50 09 | 52 65 61 64 5f 63 6c 69 |....JMP.|Read_cli|
|00004100| 70 62 6f 61 72 64 0a 6e | 6f 5f 6d 6f 72 65 5f 64 |pboard.n|o_more_d|
|00004110| 61 74 61 3a 0a 0a 94 45 | 52 52 4f 52 20 43 4f 44 |ata:...E|RROR COD|
|00004120| 45 53 95 3a 0a 0a 09 09 | 41 48 20 3d 20 30 cc 0c |ES.:....|AH = 0..|
|00004130| 20 cc 4e 6f 20 65 72 72 | 6f 72 2e de 20 59 de 0a | .No err|or.. Y..|
|00004140| cc 0c 11 cc cc 11 16 cc | 41 48 20 3d 20 31 cc 16 |........|AH = 1..|
|00004150| 20 cc 44 69 73 6b 20 49 | 2f 4f 20 65 72 72 6f 72 | .Disk I|/O error|
|00004160| 20 a9 a9 20 63 61 6e 27 | 74 20 72 65 74 72 69 65 | .. can'|t retrie|
|00004170| 76 65 20 64 61 74 61 de | 20 59 de 0a 09 09 41 48 |ve data.| Y....AH|
|00004180| 20 3d 20 32 cc 0c 20 cc | 49 6e 76 61 6c 69 64 20 | = 2.. .|Invalid |
|00004190| 66 6f 72 6d 61 74 20 74 | 79 70 65 20 72 65 71 75 |format t|ype requ|
|000041a0| 65 73 74 20 28 69 2e 65 | 2e 2c 20 72 65 71 75 65 |est (i.e|., reque|
|000041b0| 73 74 65 64 20 64 61 74 | 61 20 69 6e 20 57 50 0d |sted dat|a in WP.|
|000041c0| 4d 65 72 67 65 20 46 69 | 6c 65 20 66 6f 72 6d 61 |Merge Fi|le forma|
|000041d0| 74 20 77 68 65 6e 20 64 | 61 74 61 20 69 6e 20 63 |t when d|ata in c|
|000041e0| 6c 69 70 62 6f 61 72 64 | 20 77 61 73 20 57 50 20 |lipboard| was WP |
|000041f0| 74 65 78 74 20 6f 72 0d | 41 53 43 49 49 20 74 65 |text or.|ASCII te|
|00004200| 78 74 29 de 20 59 de 0a | dc 62 00 00 00 00 00 00 |xt). Y..|.b......|
|00004210| dc 0c cb f4 01 f8 08 cb | c0 0c 59 08 46 c0 46 75 |........|..Y.F.Fu|
|00004220| 6e 63 74 69 6f 6e 20 35 | 35 68 20 a9 a9 20 52 65 |nction 5|5h .. Re|
|00004230| 71 75 65 73 74 20 50 65 | 72 6d 69 73 73 69 6f 6e |quest Pe|rmission|
|00004240| 20 74 6f 20 45 78 69 74 | 0a c0 08 46 0c 59 c0 cb | to Exit|...F.Y..|
|00004250| f8 08 f4 01 cb 0a 0a 42 | 65 63 61 75 73 65 20 74 |.......B|ecause t|
|00004260| 68 65 20 53 68 65 6c 6c | 20 75 73 65 73 20 44 4f |he Shell| uses DO|
|00004270| 53 20 74 6f 20 6c 6f 61 | 64 20 70 72 6f 67 72 61 |S to loa|d progra|
|00004280| 6d 73 20 61 6e 64 20 6d | 61 6e 61 67 65 20 6d 65 |ms and m|anage me|
|00004290| 6d 6f 72 79 2c 20 70 72 | 6f 67 72 61 6d 73 20 6d |mory, pr|ograms m|
|000042a0| 75 73 74 0d 62 65 20 65 | 78 69 74 65 64 20 69 6e |ust.be e|xited in|
|000042b0| 20 74 68 65 20 72 65 76 | 65 72 73 65 20 6f 72 64 | the rev|erse ord|
|000042c0| 65 72 20 74 68 61 74 20 | 74 68 65 79 20 77 65 72 |er that |they wer|
|000042d0| 65 20 6c 6f 61 64 65 64 | 20 69 6e 74 6f 20 6d 65 |e loaded| into me|
|000042e0| 6d 6f 72 79 2e 20 20 54 | 68 69 73 20 72 65 71 75 |mory. T|his requ|
|000042f0| 69 72 65 73 0d 74 68 61 | 74 20 61 20 70 72 6f 67 |ires.tha|t a prog|
|00004300| 72 61 6d 20 72 65 71 75 | 65 73 74 20 70 65 72 6d |ram requ|est perm|
|00004310| 69 73 73 69 6f 6e 20 66 | 72 6f 6d 20 74 68 65 20 |ission f|rom the |
|00004320| 53 68 65 6c 6c 20 6a 75 | 73 74 20 70 72 69 6f 72 |Shell ju|st prior|
|00004330| 20 74 6f 20 74 65 72 6d | 69 6e 61 74 69 6e 67 2e | to term|inating.|
|00004340| 20 20 54 68 65 0d 53 68 | 65 6c 6c 20 77 69 6c 6c | The.Sh|ell will|
|00004350| 20 72 65 74 75 72 6e 20 | 63 6f 6e 74 72 6f 6c 20 | return |control |
|00004360| 74 6f 20 74 68 65 20 70 | 72 6f 67 72 61 6d 20 77 |to the p|rogram w|
|00004370| 68 65 6e 20 69 74 20 69 | 73 20 74 69 6d 65 20 74 |hen it i|s time t|
|00004380| 6f 20 65 78 69 74 2e 0a | 0a 94 49 4e 95 3a 09 09 |o exit..|..IN.:..|
|00004390| 41 48 20 63 6f 6e 74 61 | 69 6e 73 20 74 68 65 20 |AH conta|ins the |
|000043a0| 66 75 6e 63 74 69 6f 6e | 20 6e 75 6d 62 65 72 20 |function| number |
|000043b0| 28 35 35 68 29 0a 09 09 | 41 4c 20 63 6f 6e 74 61 |(55h)...|AL conta|
|000043c0| 69 6e 73 20 74 68 65 20 | 50 72 6f 67 72 61 6d 20 |ins the |Program |
|000043d0| 49 44 20 63 6f 64 65 0a | 0a 94 4f 55 54 95 3a 09 |ID code.|..OUT.:.|
|000043e0| 09 41 48 20 63 6f 6e 74 | 61 69 6e 73 20 61 6e 20 |.AH cont|ains an |
|000043f0| 65 72 72 6f 72 20 63 6f | 64 65 0a 0a 94 45 58 41 |error co|de...EXA|
|00004400| 4d 50 4c 45 95 3a 0a 0a | 09 09 4d 4f 56 09 41 48 |MPLE.:..|..MOV.AH|
|00004410| 2c 35 35 68 0a 09 09 4d | 4f 56 09 41 4c 2c 70 72 |,55h...M|OV.AL,pr|
|00004420| 6f 67 72 61 6d 5f 49 44 | 0a 09 09 49 4e 54 09 31 |ogram_ID|...INT.1|
|00004430| 41 68 0a 09 09 4f 52 09 | 41 48 2c 41 48 0a 09 09 |Ah...OR.|AH,AH...|
|00004440| 4a 4e 5a 09 67 6f 5f 61 | 68 65 61 64 5f 61 6e 64 |JNZ.go_a|head_and|
|00004450| 5f 74 65 72 6d 69 6e 61 | 74 65 0a 09 09 4a 4d 50 |_termina|te...JMP|
|00004460| 09 72 65 73 74 61 72 74 | 5f 70 72 6f 67 72 61 6d |.restart|_program|
|00004470| 0a 0a 94 45 52 52 4f 52 | 20 43 4f 44 45 53 95 3a |...ERROR| CODES.:|
|00004480| 0a 0a 09 09 41 48 20 3d | 20 30 cc 0c 20 cc 52 65 |....AH =| 0.. .Re|
|00004490| 73 74 61 72 74 20 70 72 | 6f 67 72 61 6d 20 a9 a9 |start pr|ogram ..|
|000044a0| 20 75 73 65 72 20 77 69 | 73 68 65 73 20 74 6f 20 | user wi|shes to |
|000044b0| 72 65 a9 65 6e 74 65 72 | 20 70 72 6f 67 72 61 6d |re.enter| program|
|000044c0| 2e de 20 59 de 0a 09 09 | 41 48 20 3c 3e 20 30 09 |.. Y....|AH <> 0.|
|000044d0| 47 6f 20 61 68 65 61 64 | 20 61 6e 64 20 74 65 72 |Go ahead| and ter|
|000044e0| 6d 69 6e 61 74 65 20 70 | 72 6f 67 72 61 6d 2e 0a |minate p|rogram..|
|000044f0| 0a 9d 4e 6f 74 65 3a 9c | 20 54 68 65 20 63 61 6c |..Note:.| The cal|
|00004500| 6c 69 6e 67 20 70 72 6f | 67 72 61 6d 20 73 68 6f |ling pro|gram sho|
|00004510| 75 6c 64 20 75 73 65 20 | 44 4f 53 20 66 75 6e 63 |uld use |DOS func|
|00004520| 74 69 6f 6e 20 34 43 68 | 20 74 6f 20 74 65 72 6d |tion 4Ch| to term|
|00004530| 69 6e 61 74 65 2e 0a dc | 38 00 00 00 00 00 00 dc |inate...|8.......|
|00004540| 0c cb f4 01 f8 08 cb c0 | 0c 59 08 46 c0 46 75 6e |........|.Y.F.Fun|
|00004550| 63 74 69 6f 6e 20 35 36 | 68 20 a9 a9 20 43 68 65 |ction 56|h .. Che|
|00004560| 63 6b 20 43 6c 69 70 62 | 6f 61 72 64 20 46 6f 72 |ck Clipb|oard For|
|00004570| 6d 61 74 0a c0 08 46 0c | 59 c0 cb f8 08 f4 01 cb |mat...F.|Y.......|
|00004580| 0a 0a 55 73 65 20 74 68 | 69 73 20 66 75 6e 63 74 |..Use th|is funct|
|00004590| 69 6f 6e 20 74 6f 20 72 | 65 74 75 72 6e 20 61 20 |ion to r|eturn a |
|000045a0| 66 6f 72 6d 61 74 20 74 | 79 70 65 20 63 6f 64 65 |format t|ype code|
|000045b0| 20 69 6e 64 69 63 61 74 | 69 6e 67 20 77 68 61 74 | indicat|ing what|
|000045c0| 20 74 79 70 65 20 6f 66 | 20 64 61 74 61 20 69 73 | type of| data is|
|000045d0| 0d 63 75 72 72 65 6e 74 | 6c 79 20 69 6e 20 74 68 |.current|ly in th|
|000045e0| 65 20 63 6c 69 70 62 6f | 61 72 64 20 28 74 65 78 |e clipbo|ard (tex|
|000045f0| 74 20 6f 72 20 6d 61 69 | 6c 20 6d 65 72 67 65 20 |t or mai|l merge |
|00004600| 66 6f 72 6d 61 74 29 2e | 0a 0a 94 49 4e 95 3a 09 |format).|...IN.:.|
|00004610| 09 41 48 20 63 6f 6e 74 | 61 69 6e 73 20 74 68 65 |.AH cont|ains the|
|00004620| 20 66 75 6e 63 74 69 6f | 6e 20 6e 75 6d 62 65 72 | functio|n number|
|00004630| 20 28 35 36 68 29 0a 09 | 09 41 4c 20 63 6f 6e 74 | (56h)..|.AL cont|
|00004640| 61 69 6e 73 20 74 68 65 | 20 50 72 6f 67 72 61 6d |ains the| Program|
|00004650| 20 49 44 20 63 6f 64 65 | 0a 0a 94 4f 55 54 95 3a | ID code|...OUT.:|
|00004660| 09 09 41 48 20 63 6f 6e | 74 61 69 6e 73 20 74 68 |..AH con|tains th|
|00004670| 65 20 66 6f 72 6d 61 74 | 20 74 79 70 65 20 63 6f |e format| type co|
|00004680| 64 65 3a 0a 09 09 09 30 | 20 3d 20 64 61 74 61 20 |de:....0| = data |
|00004690| 69 73 20 74 65 78 74 20 | 28 57 50 20 6f 72 20 41 |is text |(WP or A|
|000046a0| 53 43 49 49 29 0a 09 09 | 09 31 20 3d 20 64 61 74 |SCII)...|.1 = dat|
|000046b0| 61 20 69 73 20 6d 61 69 | 6c a9 6d 65 72 67 65 20 |a is mai|l.merge |
|000046c0| 66 6f 72 6d 61 74 20 28 | 57 50 20 4d 65 72 67 65 |format (|WP Merge|
|000046d0| 29 0a 0a 94 45 58 41 4d | 50 4c 45 95 3a 0a 0a 09 |)...EXAM|PLE.:...|
|000046e0| 09 4d 4f 56 09 41 48 2c | 35 36 68 0a 09 09 4d 4f |.MOV.AH,|56h...MO|
|000046f0| 56 09 41 4c 2c 70 72 6f | 67 72 61 6d 5f 49 44 0a |V.AL,pro|gram_ID.|
|00004700| 09 09 49 4e 54 09 31 41 | 68 0a 0a 94 45 52 52 4f |..INT.1A|h...ERRO|
|00004710| 52 20 43 4f 44 45 53 95 | 3a 0a 0a 09 09 4e 6f 20 |R CODES.|:....No |
|00004720| 65 72 72 6f 72 73 20 61 | 72 65 20 64 65 66 69 6e |errors a|re defin|
|00004730| 65 64 20 66 6f 72 20 74 | 68 69 73 20 66 75 6e 63 |ed for t|his func|
|00004740| 74 69 6f 6e 0a 0a dc 2e | 00 00 00 00 00 00 dc 0c |tion....|........|
|00004750| cb f4 01 f8 08 cb c0 0c | 59 08 46 c0 46 75 6e 63 |........|Y.F.Func|
|00004760| 74 69 6f 6e 20 35 37 68 | 20 a9 a9 20 43 68 65 63 |tion 57h| .. Chec|
|00004770| 6b 20 69 66 20 53 68 65 | 6c 6c 20 69 73 20 69 6e |k if She|ll is in|
|00004780| 73 74 61 6c 6c 69 6e 67 | 20 70 72 6f 67 72 61 6d |stalling| program|
|00004790| 20 72 65 73 69 64 65 6e | 74 0a c0 08 46 0c 59 c0 | residen|t...F.Y.|
|000047a0| cb f8 08 f4 01 cb 0a 0a | 54 68 69 73 20 66 75 6e |........|This fun|
|000047b0| 63 74 69 6f 6e 20 73 68 | 6f 75 6c 64 20 62 65 20 |ction sh|ould be |
|000047c0| 69 73 73 75 65 64 20 62 | 79 20 74 68 65 20 63 61 |issued b|y the ca|
|000047d0| 6c 6c 69 6e 67 20 70 72 | 6f 67 72 61 6d 20 61 66 |lling pr|ogram af|
|000047e0| 74 65 72 20 69 74 20 68 | 61 73 20 72 65 71 75 65 |ter it h|as reque|
|000047f0| 73 74 65 64 20 61 0d 70 | 72 6f 67 72 61 6d 20 49 |sted a.p|rogram I|
|00004800| 44 20 63 6f 64 65 2c 20 | 61 6e 64 20 61 66 74 65 |D code, |and afte|
|00004810| 72 20 69 74 20 68 61 73 | 20 72 65 6c 65 61 73 65 |r it has| release|
|00004820| 64 20 61 6e 79 20 65 78 | 74 72 61 20 6d 65 6d 6f |d any ex|tra memo|
|00004830| 72 79 2c 20 62 75 74 20 | 62 65 66 6f 72 65 20 69 |ry, but |before i|
|00004840| 74 0d 6d 6f 64 69 66 69 | 65 73 20 74 68 65 20 73 |t.modifi|es the s|
|00004850| 63 72 65 65 6e 20 6f 72 | 20 64 6f 65 73 20 61 6e |creen or| does an|
|00004860| 79 20 75 73 65 72 20 69 | 6e 74 65 72 61 63 74 69 |y user i|nteracti|
|00004870| 6f 6e 2e 0a 0a 49 66 20 | 74 68 65 20 66 75 6e 63 |on...If |the func|
|00004880| 74 69 6f 6e 20 72 65 74 | 75 72 6e 73 20 61 20 31 |tion ret|urns a 1|
|00004890| 20 69 6e 20 41 4c 2c 20 | 74 68 65 20 75 73 65 72 | in AL, |the user|
|000048a0| 20 77 61 6e 74 73 20 74 | 6f 20 6c 6f 61 64 20 74 | wants t|o load t|
|000048b0| 68 69 73 20 70 72 6f 67 | 72 61 6d 20 69 6e 74 6f |his prog|ram into|
|000048c0| 0d 6d 65 6d 6f 72 79 20 | 61 73 20 68 65 20 28 73 |.memory |as he (s|
|000048d0| 68 65 29 20 69 73 20 73 | 74 61 72 74 69 6e 67 20 |he) is s|tarting |
|000048e0| 74 68 65 20 53 68 65 6c | 6c 2c 20 62 75 74 20 64 |the Shel|l, but d|
|000048f0| 6f 65 73 20 6e 6f 74 20 | 77 69 73 68 20 74 6f 20 |oes not |wish to |
|00004900| 62 65 67 69 6e 20 75 73 | 69 6e 67 20 74 68 65 0d |begin us|ing the.|
|00004910| 70 72 6f 67 72 61 6d 20 | 75 6e 74 69 6c 20 74 68 |program |until th|
|00004920| 65 79 20 73 65 6c 65 63 | 74 20 69 74 20 66 72 6f |ey selec|t it fro|
|00004930| 6d 20 74 68 65 20 53 68 | 65 6c 6c 20 6d 65 6e 75 |m the Sh|ell menu|
|00004940| 2e 20 20 49 66 20 74 68 | 69 73 20 69 73 20 74 68 |. If th|is is th|
|00004950| 65 20 63 61 73 65 2c 20 | 74 68 65 20 63 61 6c 6c |e case, |the call|
|00004960| 69 6e 67 0d 70 72 6f 67 | 72 61 6d 20 73 68 6f 75 |ing.prog|ram shou|
|00004970| 6c 64 20 67 6f 20 61 68 | 65 61 64 20 61 6e 64 20 |ld go ah|ead and |
|00004980| 63 6f 6d 70 6c 65 74 65 | 20 61 6e 79 20 69 6e 69 |complete| any ini|
|00004990| 74 69 61 6c 69 7a 61 74 | 69 6f 6e 20 72 65 71 75 |tializat|ion requ|
|000049a0| 69 72 65 64 2c 20 61 6e | 64 20 74 68 65 6e 20 75 |ired, an|d then u|
|000049b0| 73 65 0d 46 75 6e 63 74 | 69 6f 6e 20 31 20 74 6f |se.Funct|ion 1 to|
|000049c0| 20 74 72 61 6e 73 66 65 | 72 20 63 6f 6e 74 72 6f | transfe|r contro|
|000049d0| 6c 20 74 6f 20 74 68 65 | 20 53 68 65 6c 6c 20 6d |l to the| Shell m|
|000049e0| 61 6e 61 67 65 72 2e 0a | 0a 94 49 4e 95 3a 09 09 |anager..|..IN.:..|
|000049f0| 41 48 20 63 6f 6e 74 61 | 69 6e 73 20 74 68 65 20 |AH conta|ins the |
|00004a00| 66 75 6e 63 74 69 6f 6e | 20 6e 75 6d 62 65 72 20 |function| number |
|00004a10| 28 35 37 68 29 0a 09 09 | 41 4c 20 63 6f 6e 74 61 |(57h)...|AL conta|
|00004a20| 69 6e 73 20 74 68 65 20 | 50 72 6f 67 72 61 6d 20 |ins the |Program |
|00004a30| 49 44 20 63 6f 64 65 0a | 0a 94 4f 55 54 95 3a 09 |ID code.|..OUT.:.|
|00004a40| 09 41 48 20 63 6f 6e 74 | 61 69 6e 73 20 61 6e 20 |.AH cont|ains an |
|00004a50| 65 72 72 6f 72 20 63 6f | 64 65 0a 09 cc 0c 16 cc |error co|de......|
|00004a60| 41 4c 20 3d 20 31 20 69 | 66 20 70 72 6f 67 72 61 |AL = 1 i|f progra|
|00004a70| 6d 20 73 68 6f 75 6c 64 | 20 74 72 61 6e 73 66 65 |m should| transfe|
|00004a80| 72 20 63 6f 6e 74 72 6f | 6c 20 74 6f 20 53 68 65 |r contro|l to She|
|00004a90| 6c 6c 20 69 6d 6d 65 64 | 69 61 74 65 6c 79 20 62 |ll immed|iately b|
|00004aa0| 65 66 6f 72 65 0d 73 74 | 61 72 74 69 6e 67 2e de |efore.st|arting..|
|00004ab0| 16 59 de 0a 0a 94 45 58 | 41 4d 50 4c 45 95 3a 0a |.Y....EX|AMPLE.:.|
|00004ac0| 0a 09 09 4d 4f 56 09 41 | 48 2c 35 37 68 0a 09 09 |...MOV.A|H,57h...|
|00004ad0| 4d 4f 56 09 41 4c 2c 70 | 72 6f 67 72 61 6d 5f 49 |MOV.AL,p|rogram_I|
|00004ae0| 44 0a 09 09 49 4e 54 09 | 31 41 68 0a 09 09 4f 52 |D...INT.|1Ah...OR|
|00004af0| 09 41 48 2c 41 48 0a 09 | 09 4a 4e 5a 09 65 72 72 |.AH,AH..|.JNZ.err|
|00004b00| 6f 72 5f 68 61 6e 64 6c | 65 72 0a 09 09 4f 52 09 |or_handl|er...OR.|
|00004b10| 41 4c 2c 41 4c 0a 09 09 | 4a 5a 09 63 6f 6e 74 69 |AL,AL...|JZ.conti|
|00004b20| 6e 75 65 5f 77 69 74 68 | 5f 70 72 6f 67 72 61 6d |nue_with|_program|
|00004b30| 0a 0a 09 09 4d 4f 56 09 | 41 48 2c 35 31 68 09 09 |....MOV.|AH,51h..|
|00004b40| 09 3b 20 74 72 61 6e 73 | 66 65 72 20 74 6f 20 53 |.; trans|fer to S|
|00004b50| 68 65 6c 6c 0a 09 09 4d | 4f 56 09 41 4c 2c 70 72 |hell...M|OV.AL,pr|
|00004b60| 6f 67 72 61 6d 5f 49 44 | 0a 09 09 49 4e 54 09 31 |ogram_ID|...INT.1|
|00004b70| 41 68 0a 09 09 4f 52 09 | 41 48 2c 41 48 0a 09 09 |Ah...OR.|AH,AH...|
|00004b80| 4a 5a 09 63 6f 6e 74 69 | 6e 75 65 5f 77 69 74 68 |JZ.conti|nue_with|
|00004b90| 5f 70 72 6f 67 72 61 6d | 0a 09 09 44 45 43 09 41 |_program|...DEC.A|
|00004ba0| 48 0a 09 09 4a 5a 09 63 | 6f 6e 74 69 6e 75 65 5f |H...JZ.c|ontinue_|
|00004bb0| 77 69 74 68 5f 70 72 6f | 67 72 61 6d 0a 09 09 44 |with_pro|gram...D|
|00004bc0| 45 43 09 41 48 0a 09 09 | 4a 41 45 09 65 78 69 74 |EC.AH...|JAE.exit|
|00004bd0| 5f 70 72 6f 67 72 61 6d | 0a 0a 63 6f 6e 74 69 6e |_program|..contin|
|00004be0| 75 65 5f 77 69 74 68 5f | 70 72 6f 67 72 61 6d 3a |ue_with_|program:|
|00004bf0| 0a 0a 94 45 52 52 4f 52 | 20 43 4f 44 45 53 95 3a |...ERROR| CODES.:|
|00004c00| 0a 0a 09 09 41 48 20 3d | 20 30 09 4e 6f 20 65 72 |....AH =| 0.No er|
|00004c10| 72 6f 72 0a 09 09 41 48 | 20 3d 20 31 09 49 6e 76 |ror...AH| = 1.Inv|
|00004c20| 61 6c 69 64 20 70 72 6f | 67 72 61 6d 20 49 44 20 |alid pro|gram ID |
|00004c30| 63 6f 64 65 0a dc 5c 00 | 00 00 00 00 00 dc 0c cb |code..\.|........|
|00004c40| f4 01 f8 08 cb c0 0c 59 | 08 46 c0 46 75 6e 63 74 |.......Y|.F.Funct|
|00004c50| 69 6f 6e 20 35 38 68 20 | a9 a9 20 54 65 73 74 20 |ion 58h |.. Test |
|00004c60| 69 66 20 53 68 65 6c 6c | 20 69 73 20 75 73 69 6e |if Shell| is usin|
|00004c70| 67 20 45 78 70 61 6e 64 | 65 64 20 4d 65 6d 6f 72 |g Expand|ed Memor|
|00004c80| 79 0a c0 08 46 0c 59 c0 | cb f8 08 f4 01 cb 0a 0a |y...F.Y.|........|
|00004c90| 54 68 69 73 20 66 75 6e | 63 74 69 6f 6e 20 61 6c |This fun|ction al|
|00004ca0| 6c 6f 77 73 20 70 72 6f | 67 72 61 6d 73 20 74 6f |lows pro|grams to|
|00004cb0| 20 64 65 74 65 72 6d 69 | 6e 65 20 77 68 65 74 68 | determi|ne wheth|
|00004cc0| 65 72 20 6f 72 20 6e 6f | 74 20 74 68 65 20 53 68 |er or no|t the Sh|
|00004cd0| 65 6c 6c 20 69 73 20 75 | 73 69 6e 67 0d 45 78 70 |ell is u|sing.Exp|
|00004ce0| 61 6e 64 65 64 20 4d 65 | 6d 6f 72 79 2e 20 20 49 |anded Me|mory. I|
|00004cf0| 66 20 73 6f 2c 20 74 68 | 65 20 70 72 6f 67 72 61 |f so, th|e progra|
|00004d00| 6d 73 20 64 6f 20 6e 6f | 74 20 6e 65 65 64 20 74 |ms do no|t need t|
|00004d10| 6f 20 72 65 6c 65 61 73 | 65 20 6d 65 6d 6f 72 79 |o releas|e memory|
|00004d20| 20 77 68 65 6e 0d 74 68 | 65 79 20 73 74 61 72 74 | when.th|ey start|
|00004d30| 2c 20 62 75 74 20 63 61 | 6e 20 74 61 6b 65 20 61 |, but ca|n take a|
|00004d40| 73 20 6d 75 63 68 20 6f | 72 20 61 6c 6c 20 6f 66 |s much o|r all of|
|00004d50| 20 74 68 65 20 36 34 30 | 4b 20 63 6f 6e 76 65 6e | the 640|K conven|
|00004d60| 74 69 6f 6e 61 6c 20 6d | 65 6d 6f 72 79 20 61 73 |tional m|emory as|
|00004d70| 20 74 68 65 79 0d 77 69 | 73 68 2e 0a 0a 94 49 4e | they.wi|sh....IN|
|00004d80| 95 3a cc 0c 11 cc cc 11 | 16 cc 41 48 20 63 6f 6e |.:......|..AH con|
|00004d90| 74 61 69 6e 73 20 74 68 | 65 20 66 75 6e 63 74 69 |tains th|e functi|
|00004da0| 6f 6e 20 6e 75 6d 62 65 | 72 20 28 35 38 68 29 de |on numbe|r (58h).|
|00004db0| 16 59 de 0a 0a 94 4f 55 | 54 95 3a cc 0c 11 cc cc |.Y....OU|T.:.....|
|00004dc0| 11 16 cc 41 4c 20 63 6f | 6e 74 61 69 6e 73 20 31 |...AL co|ntains 1|
|00004dd0| 20 69 66 20 45 78 70 61 | 6e 64 65 64 20 4d 65 6d | if Expa|nded Mem|
|00004de0| 6f 72 79 20 69 73 20 62 | 65 69 6e 67 20 75 73 65 |ory is b|eing use|
|00004df0| 64 2e de 16 59 de 0a 0a | 94 45 58 41 4d 50 4c 45 |d...Y...|.EXAMPLE|
|00004e00| 95 3a 0a 0a 09 09 4d 4f | 56 09 41 48 2c 35 38 68 |.:....MO|V.AH,58h|
|00004e10| 0a 09 09 49 4e 54 09 31 | 41 68 0a 09 09 4f 52 09 |...INT.1|Ah...OR.|
|00004e20| 41 4c 2c 41 4c 0a 09 09 | 4a 5a 09 6e 6f 5f 65 78 |AL,AL...|JZ.no_ex|
|00004e30| 70 61 6e 64 65 64 5f 6d | 65 6d 6f 72 79 0a 09 09 |panded_m|emory...|
|00004e40| 4a 4d 50 09 63 61 6e 5f | 75 73 65 5f 61 6c 6c 5f |JMP.can_|use_all_|
|00004e50| 63 6f 6e 76 65 6e 74 69 | 6f 6e 61 6c 5f 6d 65 6d |conventi|onal_mem|
|00004e60| 6f 72 79 0a 0a 94 45 52 | 52 4f 52 20 43 4f 44 45 |ory...ER|ROR CODE|
|00004e70| 53 95 3a 0a 0a 09 09 4e | 6f 20 65 72 72 6f 72 73 |S.:....N|o errors|
|00004e80| 20 61 72 65 20 64 65 66 | 69 6e 65 64 20 66 6f 72 | are def|ined for|
|00004e90| 20 74 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 0a dc | this fu|nction..|
|00004ea0| 2e 00 00 00 00 00 00 dc | 0c cb f4 01 f6 08 cb c0 |........|........|
|00004eb0| 0c 59 0a 4a c0 43 48 41 | 50 54 45 52 20 35 20 a9 |.Y.J.CHA|PTER 5 .|
|00004ec0| a9 cc 0a 1b cc 55 53 45 | 52 20 49 4e 54 45 52 46 |.....USE|R INTERF|
|00004ed0| 41 43 45 20 47 55 49 44 | 45 4c 49 4e 45 53 20 41 |ACE GUID|ELINES A|
|00004ee0| 4e 44 0d 53 55 47 47 45 | 53 54 49 4f 4e 53 de 1b |ND.SUGGE|STIONS..|
|00004ef0| 4a de 0a c0 0a 4a 0c 59 | c0 cb f6 08 f4 01 cb 0a |J....J.Y|........|
|00004f00| 0a 41 6c 6c 20 70 72 6f | 67 72 61 6d 73 20 28 74 |.All pro|grams (t|
|00004f10| 6f 20 64 61 74 65 29 20 | 74 68 61 74 20 69 6e 74 |o date) |that int|
|00004f20| 65 72 61 63 74 20 77 69 | 74 68 20 74 68 65 20 53 |eract wi|th the S|
|00004f30| 68 65 6c 6c 20 75 73 65 | 20 9d 43 74 72 6c a9 46 |hell use| .Ctrl.F|
|00004f40| 31 9c 20 61 73 20 74 68 | 65 20 22 53 68 65 6c 6c |1. as th|e "Shell|
|00004f50| 22 0d 6b 65 79 2e 20 20 | 57 65 20 68 69 67 68 6c |".key. |We highl|
|00004f60| 79 20 72 65 63 6f 6d 6d | 65 6e 64 20 74 68 61 74 |y recomm|end that|
|00004f70| 20 61 6c 6c 20 70 72 6f | 67 72 61 6d 73 20 74 68 | all pro|grams th|
|00004f80| 61 74 20 69 6e 74 65 72 | 61 63 74 20 77 69 74 68 |at inter|act with|
|00004f90| 20 74 68 65 20 53 68 65 | 6c 6c 20 75 73 65 0d 9d | the She|ll use..|
|00004fa0| 43 74 72 6c a9 46 31 9c | 20 74 6f 20 67 6f 20 74 |Ctrl.F1.| to go t|
|00004fb0| 6f 20 74 68 65 20 53 68 | 65 6c 6c 2c 20 69 6e 74 |o the Sh|ell, int|
|00004fc0| 65 72 61 63 74 20 77 69 | 74 68 20 74 68 65 20 63 |eract wi|th the c|
|00004fd0| 6c 69 70 62 6f 61 72 64 | 2c 20 65 74 63 2e 0a 0a |lipboard|, etc...|
|00004fe0| 4f 6e 65 20 6f 66 20 74 | 68 65 20 66 65 61 74 75 |One of t|he featu|
|00004ff0| 72 65 73 20 6f 66 20 74 | 68 65 20 53 68 65 6c 6c |res of t|he Shell|
|00005000| 20 69 73 20 74 68 65 20 | 63 61 70 61 62 69 6c 69 | is the |capabili|
|00005010| 74 79 20 66 6f 72 20 74 | 68 65 20 75 73 65 72 20 |ty for t|he user |
|00005020| 74 6f 20 73 77 69 74 63 | 68 20 62 65 74 77 65 65 |to switc|h betwee|
|00005030| 6e 0d 70 72 6f 67 72 61 | 6d 73 20 62 79 20 70 72 |n.progra|ms by pr|
|00005040| 65 73 73 69 6e 67 20 61 | 6e 20 41 4c 54 a9 53 48 |essing a|n ALT.SH|
|00005050| 49 46 54 a9 6c 65 74 74 | 65 72 20 6b 65 79 20 63 |IFT.lett|er key c|
|00005060| 6f 6d 62 69 6e 61 74 69 | 6f 6e 2e 20 20 54 68 69 |ombinati|on. Thi|
|00005070| 73 20 66 65 61 74 75 72 | 65 20 69 73 0d 69 6d 70 |s featur|e is.imp|
|00005080| 6c 65 6d 65 6e 74 65 64 | 20 61 73 20 61 20 53 68 |lemented| as a Sh|
|00005090| 65 6c 6c 20 6d 61 63 72 | 6f 2c 20 61 6e 64 20 61 |ell macr|o, and a|
|000050a0| 73 73 75 6d 65 73 20 74 | 68 61 74 20 74 68 65 20 |ssumes t|hat the |
|000050b0| 6e 6f 72 6d 61 6c 20 70 | 72 6f 63 65 64 75 72 65 |normal p|rocedure|
|000050c0| 20 74 6f 20 67 6f 20 74 | 6f 0d 74 68 65 20 53 68 | to go t|o.the Sh|
|000050d0| 65 6c 6c 20 63 6f 6e 73 | 69 73 74 73 20 6f 66 20 |ell cons|ists of |
|000050e0| 70 72 65 73 73 69 6e 67 | 20 9d 43 74 72 6c a9 46 |pressing| .Ctrl.F|
|000050f0| 31 9c 20 61 6e 64 20 74 | 68 65 6e 20 9d 31 9c 2e |1. and t|hen .1..|
|00005100| 20 20 46 6f 72 20 74 68 | 69 73 20 72 65 61 73 6f | For th|is reaso|
|00005110| 6e 2c 20 77 65 20 61 6c | 73 6f 0d 72 65 63 6f 6d |n, we al|so.recom|
|00005120| 6d 65 6e 64 20 74 68 61 | 74 20 61 20 6d 65 6e 75 |mend tha|t a menu|
|00005130| 20 62 65 20 64 69 73 70 | 6c 61 79 65 64 20 77 68 | be disp|layed wh|
|00005140| 65 6e 20 74 68 65 20 75 | 73 65 72 20 70 72 65 73 |en the u|ser pres|
|00005150| 73 65 73 20 9d 43 74 72 | 6c a9 46 31 9c 2c 20 77 |ses .Ctr|l.F1., w|
|00005160| 68 65 72 65 20 74 68 65 | 0d 66 69 72 73 74 20 6f |here the|.first o|
|00005170| 70 74 69 6f 6e 20 69 73 | 20 9d 47 6f 20 74 6f 20 |ption is| .Go to |
|00005180| 53 68 65 6c 6c 9c 2e 20 | 20 54 68 69 73 20 77 69 |Shell.. | This wi|
|00005190| 6c 6c 20 61 6c 6c 6f 77 | 20 74 68 65 20 75 73 65 |ll allow| the use|
|000051a0| 72 20 74 6f 20 75 73 65 | 20 74 68 65 20 22 73 68 |r to use| the "sh|
|000051b0| 6f 72 74 63 75 74 22 0d | 6d 65 74 68 6f 64 20 6f |ortcut".|method o|
|000051c0| 66 20 73 77 69 74 63 68 | 69 6e 67 20 74 6f 20 61 |f switch|ing to a|
|000051d0| 6e 64 20 66 72 6f 6d 20 | 79 6f 75 72 20 70 72 6f |nd from |your pro|
|000051e0| 67 72 61 6d 2e 0a 0a 57 | 65 20 73 75 67 67 65 73 |gram...W|e sugges|
|000051f0| 74 20 74 68 61 74 20 70 | 72 6f 67 72 61 6d 73 20 |t that p|rograms |
|00005200| 77 68 69 63 68 20 69 6e | 74 65 6e 64 20 74 6f 20 |which in|tend to |
|00005210| 73 75 70 70 6f 72 74 20 | 74 68 65 20 53 68 65 6c |support |the Shel|
|00005220| 6c 20 64 69 72 65 63 74 | 6c 79 20 6c 6f 6f 6b 0d |l direct|ly look.|
|00005230| 74 68 72 6f 75 67 68 20 | 74 68 65 20 53 68 65 6c |through |the Shel|
|00005240| 6c 20 55 73 65 72 27 73 | 20 4d 61 6e 75 61 6c 20 |l User's| Manual |
|00005250| 28 70 61 72 74 69 63 75 | 6c 61 72 79 20 74 68 65 |(particu|lary the|
|00005260| 20 50 72 6f 67 72 61 6d | 20 50 72 6f 66 69 6c 65 | Program| Profile|
|00005270| 73 20 69 6e 20 74 68 65 | 0d 41 70 70 65 6e 64 69 |s in the|.Appendi|
|00005280| 78 29 20 74 6f 20 67 65 | 74 20 61 20 66 65 65 6c |x) to ge|t a feel|
|00005290| 20 66 6f 72 20 68 6f 77 | 20 57 6f 72 64 50 65 72 | for how| WordPer|
|000052a0| 66 65 63 74 20 70 72 6f | 67 72 61 6d 73 20 69 6e |fect pro|grams in|
|000052b0| 74 65 72 61 63 74 20 77 | 69 74 68 20 74 68 65 20 |teract w|ith the |
|000052c0| 53 68 65 6c 6c 2e 0a dc | 26 00 00 00 00 00 00 dc |Shell...|&.......|
|000052d0| 0c cb f4 01 f7 08 cb c0 | 0c 59 09 41 c0 c3 00 25 |........|.Y.A...%|
|000052e0| 21 c3 41 50 50 45 4e 44 | 49 58 83 0a c0 09 41 0c |!.APPEND|IX....A.|
|000052f0| 59 c0 cb f7 08 f4 01 cb | 0a cb f4 01 f8 08 cb c0 |Y.......|........|
|00005300| 0c 59 08 46 c0 41 2e 20 | 46 69 6c 65 20 46 6f 72 |.Y.F.A. |File For|
|00005310| 6d 61 74 73 0a c0 08 46 | 0c 59 c0 cb f8 08 f4 01 |mats...F|.Y......|
|00005320| cb 0a 0a 49 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 63 |...Infor|mation c|
|00005330| 61 6e 20 62 65 20 70 61 | 73 73 65 64 20 74 6f 20 |an be pa|ssed to |
|00005340| 61 6e 64 20 72 65 74 72 | 69 65 76 65 64 20 66 72 |and retr|ieved fr|
|00005350| 6f 6d 20 74 68 65 20 63 | 6c 69 70 62 6f 61 72 64 |om the c|lipboard|
|00005360| 20 69 6e 20 6f 6e 65 20 | 6f 66 20 74 68 65 0d 66 | in one |of the.f|
|00005370| 6f 6c 6c 6f 77 69 6e 67 | 20 66 6f 72 6d 61 74 73 |ollowing| formats|
|00005380| 3a 0a 0a cc 0c 11 cc 9d | 31 2e 20 57 50 20 54 65 |:.......|1. WP Te|
|00005390| 78 74 9c 20 a9 a9 20 57 | 6f 72 64 50 65 72 66 65 |xt. .. W|ordPerfe|
|000053a0| 63 74 20 54 65 78 74 20 | 66 6f 72 6d 61 74 2e 20 |ct Text |format. |
|000053b0| 20 44 61 74 61 20 69 6e | 20 74 68 69 73 20 66 6f | Data in| this fo|
|000053c0| 72 6d 61 74 20 63 6f 6e | 74 61 69 6e 73 20 74 65 |rmat con|tains te|
|000053d0| 78 74 0d 63 68 61 72 61 | 63 74 65 72 73 20 69 6e |xt.chara|cters in|
|000053e0| 74 65 72 73 70 65 72 73 | 65 64 20 77 69 74 68 20 |terspers|ed with |
|000053f0| 57 6f 72 64 50 65 72 66 | 65 63 74 20 66 75 6e 63 |WordPerf|ect func|
|00005400| 74 69 6f 6e 20 63 6f 64 | 65 73 2e 20 20 57 6f 72 |tion cod|es. Wor|
|00005410| 64 50 65 72 66 65 63 74 | 0d 66 75 6e 63 74 69 6f |dPerfect|.functio|
|00005420| 6e 20 63 6f 64 65 73 20 | 72 61 6e 67 65 20 66 72 |n codes |range fr|
|00005430| 6f 6d 20 31 32 38 20 74 | 6f 20 32 35 35 20 64 65 |om 128 t|o 255 de|
|00005440| 63 69 6d 61 6c 2e 20 20 | 22 45 78 74 65 6e 64 65 |cimal. |"Extende|
|00005450| 64 20 63 68 61 72 61 63 | 74 65 72 73 22 20 77 68 |d charac|ters" wh|
|00005460| 69 63 68 0d 77 6f 75 6c | 64 20 6e 6f 72 6d 61 6c |ich.woul|d normal|
|00005470| 6c 79 20 6f 63 63 75 70 | 79 20 74 68 69 73 20 72 |ly occup|y this r|
|00005480| 61 6e 67 65 20 61 72 65 | 20 70 72 65 63 65 65 64 |ange are| preceed|
|00005490| 65 64 20 61 6e 64 20 66 | 6f 6c 6c 6f 77 65 64 20 |ed and f|ollowed |
|000054a0| 62 79 20 61 20 73 70 65 | 63 69 61 6c 0d 22 67 61 |by a spe|cial."ga|
|000054b0| 74 65 22 20 a9 a9 20 74 | 68 65 20 66 75 6e 63 74 |te" .. t|he funct|
|000054c0| 69 6f 6e 20 63 6f 64 65 | 20 30 45 31 68 2e 20 20 |ion code| 0E1h. |
|000054d0| 4e 65 77 6c 69 6e 65 73 | 20 61 72 65 20 69 6e 64 |Newlines| are ind|
|000054e0| 69 63 61 74 65 64 20 62 | 79 20 61 20 73 69 6e 67 |icated b|y a sing|
|000054f0| 6c 65 0d 6c 69 6e 65 66 | 65 65 64 20 28 30 41 68 |le.linef|eed (0Ah|
|00005500| 29 2e 20 20 4f 6e 6c 79 | 20 70 72 6f 67 72 61 6d |). Only| program|
|00005510| 73 20 77 68 69 63 68 20 | 61 72 65 20 66 61 6d 69 |s which |are fami|
|00005520| 6c 69 61 72 20 77 69 74 | 68 20 57 6f 72 64 50 65 |liar wit|h WordPe|
|00005530| 72 66 65 63 74 0d 66 75 | 6e 63 74 69 6f 6e 20 63 |rfect.fu|nction c|
|00005540| 6f 64 65 73 20 73 68 6f | 75 6c 64 20 61 74 74 65 |odes sho|uld atte|
|00005550| 6d 70 74 20 74 6f 20 72 | 65 61 64 20 6f 72 20 77 |mpt to r|ead or w|
|00005560| 72 69 74 65 20 74 6f 20 | 74 68 65 20 63 6c 69 70 |rite to |the clip|
|00005570| 62 6f 61 72 64 20 75 73 | 69 6e 67 20 74 68 69 73 |board us|ing this|
|00005580| 0d 66 6f 72 6d 61 74 2e | de 11 59 de 0a 0a cc 0c |.format.|..Y.....|
|00005590| 11 cc 9d 32 2e 20 57 50 | 20 4d 65 72 67 65 20 46 |...2. WP| Merge F|
|000055a0| 69 6c 65 9c 20 a9 a9 20 | 57 6f 72 64 50 65 72 66 |ile. .. |WordPerf|
|000055b0| 65 63 74 20 6d 61 69 6c | a9 6d 65 72 67 65 20 66 |ect mail|.merge f|
|000055c0| 6f 72 6d 61 74 2e 20 20 | 54 68 69 73 20 69 73 20 |ormat. |This is |
|000055d0| 74 68 65 20 73 61 6d 65 | 20 61 73 0d 57 50 20 54 |the same| as.WP T|
|000055e0| 65 78 74 20 28 74 65 78 | 74 20 69 6e 74 65 72 73 |ext (tex|t inters|
|000055f0| 70 65 72 73 65 64 20 77 | 69 74 68 20 57 50 20 66 |persed w|ith WP f|
|00005600| 75 6e 63 74 69 6f 6e 20 | 63 6f 64 65 73 29 2c 20 |unction |codes), |
|00005610| 62 75 74 20 74 68 65 20 | 74 65 78 74 20 69 73 0d |but the |text is.|
|00005620| 66 6f 72 6d 61 74 74 65 | 64 20 69 6e 74 6f 20 61 |formatte|d into a|
|00005630| 20 66 69 65 6c 64 20 26 | 20 72 65 63 6f 72 64 20 | field &| record |
|00005640| 6f 72 69 65 6e 74 61 74 | 69 6f 6e 2e 20 20 41 20 |orientat|ion. A |
|00005650| 5e 52 20 61 6e 64 20 6c | 69 6e 66 65 65 64 20 28 |^R and l|infeed (|
|00005660| 30 41 68 29 20 66 6f 6c | 6c 6f 77 0d 65 61 63 68 |0Ah) fol|low.each|
|00005670| 20 66 69 65 6c 64 20 61 | 6e 64 20 61 20 5e 45 20 | field a|nd a ^E |
|00005680| 61 6e 64 20 6c 69 6e 65 | 66 65 65 64 20 28 30 41 |and line|feed (0A|
|00005690| 68 29 20 66 6f 6c 6c 6f | 77 20 65 61 63 68 20 72 |h) follo|w each r|
|000056a0| 65 63 6f 72 64 2e 20 20 | 54 68 69 73 20 66 6f 72 |ecord. |This for|
|000056b0| 6d 61 74 0d 73 68 6f 75 | 6c 64 20 6f 6e 6c 79 20 |mat.shou|ld only |
|000056c0| 62 65 20 75 73 65 64 20 | 62 79 20 70 72 6f 67 72 |be used |by progr|
|000056d0| 61 6d 73 20 77 68 69 63 | 68 20 61 72 65 20 61 62 |ams whic|h are ab|
|000056e0| 6c 65 20 74 6f 20 73 74 | 72 69 70 20 6f 75 74 20 |le to st|rip out |
|000056f0| 57 6f 72 64 50 65 72 66 | 65 63 74 0d 66 75 6e 63 |WordPerf|ect.func|
|00005700| 74 69 6f 6e 20 63 6f 64 | 65 73 2e de 11 59 de 0a |tion cod|es...Y..|
|00005710| 0a cc 0c 11 cc 9d 33 2e | 20 41 53 43 49 49 20 54 |......3.| ASCII T|
|00005720| 65 78 74 9c 20 a9 a9 20 | 41 53 43 49 49 20 54 65 |ext. .. |ASCII Te|
|00005730| 78 74 20 66 6f 72 6d 61 | 74 2e 20 20 44 61 74 61 |xt forma|t. Data|
|00005740| 20 69 6e 20 74 68 69 73 | 20 66 6f 72 6d 61 74 20 | in this| format |
|00005750| 63 6f 6e 73 69 73 74 73 | 20 6f 66 0d 6e 6f 72 6d |consists| of.norm|
|00005760| 61 6c 20 41 53 43 49 49 | 20 74 65 78 74 2e 20 20 |al ASCII| text. |
|00005770| 4e 65 77 6c 69 6e 65 73 | 20 61 72 65 20 72 65 70 |Newlines| are rep|
|00005780| 72 65 73 65 6e 74 65 64 | 20 62 79 20 61 20 63 61 |resented| by a ca|
|00005790| 72 72 69 61 67 65 20 72 | 65 74 75 72 6e 0d 28 30 |rriage r|eturn.(0|
|000057a0| 44 68 29 2f 6c 69 6e 65 | 66 65 65 64 20 28 30 41 |Dh)/line|feed (0A|
|000057b0| 68 29 20 63 6f 6d 62 69 | 6e 61 74 69 6f 6e 2e 20 |h) combi|nation. |
|000057c0| 20 43 6f 64 65 73 20 61 | 62 6f 76 65 20 31 32 38 | Codes a|bove 128|
|000057d0| 20 61 72 65 20 61 73 73 | 75 6d 65 64 20 74 6f 20 | are ass|umed to |
|000057e0| 62 65 0d 65 78 74 65 6e | 64 65 64 20 63 68 61 72 |be.exten|ded char|
|000057f0| 61 63 74 65 72 73 20 28 | 66 6f 72 65 69 67 6e 2c |acters (|foreign,|
|00005800| 20 6c 69 6e 65 a9 64 72 | 61 77 69 6e 67 20 63 68 | line.dr|awing ch|
|00005810| 61 72 61 63 74 65 72 73 | 2c 20 65 74 63 2e 29 20 |aracters|, etc.) |
|00005820| 20 54 68 69 73 20 66 6f | 72 6d 61 74 20 63 61 6e | This fo|rmat can|
|00005830| 0d 61 6e 64 20 73 68 6f | 75 6c 64 20 62 65 20 75 |.and sho|uld be u|
|00005840| 73 65 64 20 62 79 20 61 | 6c 6c 20 70 72 6f 67 72 |sed by a|ll progr|
|00005850| 61 6d 73 20 77 68 69 63 | 68 20 6e 65 65 64 20 74 |ams whic|h need t|
|00005860| 6f 20 63 6f 6d 6d 75 6e | 69 63 61 74 65 20 77 69 |o commun|icate wi|
|00005870| 74 68 20 74 68 65 0d 63 | 6c 69 70 62 6f 61 72 64 |th the.c|lipboard|
|00005880| 2c 20 62 75 74 20 64 6f | 20 6e 6f 74 20 77 69 73 |, but do| not wis|
|00005890| 68 20 74 6f 20 77 6f 72 | 72 79 20 61 62 6f 75 74 |h to wor|ry about|
|000058a0| 20 57 6f 72 64 50 65 72 | 66 65 63 74 20 66 75 6e | WordPer|fect fun|
|000058b0| 63 74 69 6f 6e 20 63 6f | 64 65 73 2e de 11 59 de |ction co|des...Y.|
|000058c0| 0a 0a 0a dc 40 00 00 00 | 00 00 00 dc 0c cb f4 01 |....@...|........|
|000058d0| f8 08 cb c0 0c 59 08 46 | c0 42 2e 20 4d 65 6d 6f |.....Y.F|.B. Memo|
|000058e0| 72 79 20 43 6f 6e 73 69 | 64 65 72 61 74 69 6f 6e |ry Consi|deration|
|000058f0| 73 0a c0 08 46 0c 59 c0 | cb f8 08 f4 01 cb 0a 41 |s...F.Y.|.......A|
|00005900| 73 20 65 78 70 6c 61 69 | 6e 65 64 20 69 6e 20 43 |s explai|ned in C|
|00005910| 68 61 70 74 65 72 20 32 | 2c 20 70 72 6f 67 72 61 |hapter 2|, progra|
|00005920| 6d 73 20 77 68 69 63 68 | 20 69 6e 74 65 72 61 63 |ms which| interac|
|00005930| 74 20 77 69 74 68 20 74 | 68 65 20 53 68 65 6c 6c |t with t|he Shell|
|00005940| 20 6e 65 65 64 20 74 6f | 0d 72 65 6c 65 61 73 65 | need to|.release|
|00005950| 20 61 6e 79 20 6d 65 6d | 6f 72 79 20 74 68 61 74 | any mem|ory that|
|00005960| 20 74 68 65 79 20 64 6f | 20 6e 6f 74 20 6e 65 65 | they do| not nee|
|00005970| 64 20 77 68 65 6e 20 74 | 68 65 79 20 73 74 61 72 |d when t|hey star|
|00005980| 74 2e 20 20 4d 61 6e 79 | 20 70 72 6f 67 72 61 6d |t. Many| program|
|00005990| 73 0d 6e 6f 72 6d 61 6c | 6c 79 20 74 61 6b 65 20 |s.normal|ly take |
|000059a0| 61 6c 6c 20 61 76 61 69 | 6c 61 62 6c 65 20 6d 65 |all avai|lable me|
|000059b0| 6d 6f 72 79 2e 20 20 49 | 6e 20 74 68 69 73 20 63 |mory. I|n this c|
|000059c0| 61 73 65 2c 20 74 68 65 | 20 70 72 6f 67 72 61 6d |ase, the| program|
|000059d0| 20 73 68 6f 75 6c 64 20 | 6d 61 6b 65 0d 65 78 63 | should |make.exc|
|000059e0| 65 70 74 69 6f 6e 20 77 | 68 65 6e 20 62 65 69 6e |eption w|hen bein|
|000059f0| 67 20 6c 6f 61 64 65 64 | 20 75 6e 64 65 72 20 74 |g loaded| under t|
|00005a00| 68 65 20 53 68 65 6c 6c | 2c 20 74 61 6b 65 20 61 |he Shell|, take a|
|00005a10| 20 72 65 61 73 6f 6e 62 | 6c 65 20 61 6d 6f 75 6e | reasonb|le amoun|
|00005a20| 74 20 6f 66 20 6d 65 6d | 6f 72 79 0d 28 6f 72 20 |t of mem|ory.(or |
|00005a30| 61 6c 6c 6f 77 20 74 68 | 65 20 75 73 65 72 20 74 |allow th|e user t|
|00005a40| 6f 20 73 70 65 63 69 66 | 79 20 68 6f 77 20 6d 75 |o specif|y how mu|
|00005a50| 63 68 20 74 6f 20 75 73 | 65 29 20 61 6e 64 20 72 |ch to us|e) and r|
|00005a60| 65 6c 65 61 73 65 20 74 | 68 65 20 72 65 73 74 20 |elease t|he rest |
|00005a70| 66 6f 72 20 75 73 65 20 | 62 79 0d 6f 74 68 65 72 |for use |by.other|
|00005a80| 20 53 68 65 6c 6c 20 70 | 72 6f 67 72 61 6d 73 2e | Shell p|rograms.|
|00005a90| 20 20 0a 0a 54 68 65 20 | 53 68 65 6c 6c 20 69 74 | ..The |Shell it|
|00005aa0| 73 65 6c 66 20 74 61 6b | 65 73 20 61 62 6f 75 74 |self tak|es about|
|00005ab0| 20 32 35 4b 20 6f 66 20 | 6d 65 6d 6f 72 79 2e 0a | 25K of |memory..|
|00005ac0| 0a 54 68 65 20 53 68 65 | 6c 6c 20 73 75 70 70 6f |.The She|ll suppo|
|00005ad0| 72 74 73 20 74 68 65 20 | 4c 6f 74 75 73 2f 49 6e |rts the |Lotus/In|
|00005ae0| 74 65 6c 2f 4d 69 63 72 | 6f 73 6f 66 74 20 45 78 |tel/Micr|osoft Ex|
|00005af0| 70 61 6e 64 65 64 20 4d | 65 6d 6f 72 79 20 53 70 |panded M|emory Sp|
|00005b00| 65 63 69 66 69 63 61 74 | 69 6f 6e 2e 20 0d 54 68 |ecificat|ion. .Th|
|00005b10| 65 20 53 68 65 6c 6c 20 | 77 69 6c 6c 20 61 75 74 |e Shell |will aut|
|00005b20| 6f 6d 61 74 69 63 61 6c | 6c 79 20 73 65 6e 73 65 |omatical|ly sense|
|00005b30| 20 69 66 20 45 78 70 61 | 6e 64 65 64 20 4d 65 6d | if Expa|nded Mem|
|00005b40| 6f 72 79 20 69 73 20 61 | 76 61 69 6c 61 62 65 20 |ory is a|vailabe |
|00005b50| 61 6e 64 20 73 77 61 70 | 0d 70 72 6f 67 72 61 6d |and swap|.program|
|00005b60| 73 20 6f 75 74 20 74 6f | 20 45 78 70 61 6e 64 65 |s out to| Expande|
|00005b70| 64 20 4d 65 6d 6f 72 79 | 20 77 68 65 6e 20 6e 65 |d Memory| when ne|
|00005b80| 63 65 73 73 61 72 79 2e | 20 20 57 68 65 6e 20 74 |cessary.| When t|
|00005b90| 68 65 20 53 68 65 6c 6c | 20 69 73 20 72 75 6e 20 |he Shell| is run |
|00005ba0| 66 72 6f 6d 0d 45 78 70 | 61 6e 64 65 64 20 4d 65 |from.Exp|anded Me|
|00005bb0| 6d 6f 72 79 2c 20 65 61 | 63 68 20 70 72 6f 67 72 |mory, ea|ch progr|
|00005bc0| 61 6d 20 63 61 6e 20 75 | 73 65 20 61 6c 6c 20 6f |am can u|se all o|
|00005bd0| 72 20 61 73 20 6d 75 63 | 68 20 6f 66 20 74 68 65 |r as muc|h of the|
|00005be0| 20 36 34 30 4b 0d 63 6f | 6e 76 65 6e 74 69 6f 6e | 640K.co|nvention|
|00005bf0| 61 6c 20 6d 65 6d 6f 72 | 79 20 61 73 20 69 74 20 |al memor|y as it |
|00005c00| 64 65 73 69 72 65 73 2e | 20 20 57 68 65 6e 20 70 |desires.| When p|
|00005c10| 72 6f 67 72 61 6d 73 20 | 61 72 65 20 6e 6f 74 20 |rograms |are not |
|00005c20| 63 75 72 72 65 6e 74 6c | 79 20 72 75 6e 6e 69 6e |currentl|y runnin|
|00005c30| 67 0d 74 68 65 79 20 61 | 72 65 20 73 77 61 70 70 |g.they a|re swapp|
|00005c40| 65 64 20 6f 75 74 20 74 | 6f 20 45 78 70 61 6e 64 |ed out t|o Expand|
|00005c50| 65 64 20 4d 65 6d 6f 72 | 79 20 62 79 20 74 68 65 |ed Memor|y by the|
|00005c60| 20 53 68 65 6c 6c 2e | | Shell. | |
+--------+-------------------------+-------------------------+--------+--------+